void Start() { this.moichangController = GameObject.Find("minimoi").GetComponent <MoichangController>(); this.appleGenerator = GameObject.Find("AppleGenerator").GetComponent <AppleGenerator>(); this.appleCounter = GameObject.Find("AppleCounter"); this.SetCounterValues(); AudioSource[] audioSources = GetComponents <AudioSource>(); this.soundRingoUmaina = audioSources[0]; }
private bool isTimeOut = false; void Start() { this.moichangController = GameObject.Find("minimoi").GetComponent <MoichangController>(); this.appleCounter = GameObject.Find("AppleCounter"); this.timeCounter = GameObject.Find("TimeCounter"); this.appleGenerator = GameObject.Find("AppleGenerator").GetComponent <AppleGenerator>(); }