Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by ArkaneX

The problem is, that you have some variables declared globally, and then in Awake function you don't initialize them, but instead you create local variables with the same name. So global variables remain unchanged and have values set in inspector (default empty string). You have to change your assignments in Awake from var sugar2 = Random.Range(0, 100); to sugar2 = Random.Range(0, 100).ToString(); and so on...

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>