Commit a4a367f0 authored by Sebastian's avatar Sebastian

null check for score text

parent 9ccad6d1
fileFormatVersion: 2
guid: 2cdc087867a94f948a66639756a8a3e3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -107,7 +107,11 @@ namespace Scripts.Brewing
}
}
if (!hit) return false;
if (!hit)
{
ResetWorktop();
return false;
};
_currentIngredients.Add(ingredient);
......
......@@ -23,6 +23,8 @@ public class Score : MonoBehaviour
public void SetScoreText(int value)
{
_text.text = "" + value + " Likes";
if (_text != null) {
_text.text = "" + value + " Likes";
}
}
}
fileFormatVersion: 2
guid: 0e1551d854a4a8247877583fdb2fba9a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2a0fa2311110f744ea309bab75e9f600
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 696677aa871f3804781570d7d57a564c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment