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