Ejemplo n.º 1
0
 void Start()
 {
     textField      = GetComponent <TextMeshPro>();
     sugar          = initSugar;
     textField.text = sugar.ToString();
     sugarBar       = GameObject.Find("SugarBar").GetComponent <SugarBar>();
     setBar();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     _instance = this;
     _ratioProgression = GetComponent<RatioProgression>();
 }