public void onStartButtonClick() { if (timer.prepare > -1 && timer.work > -1 && timer.rest > -1 && timer.cycles != 0 && timer.tabatas != 0) { BigCounterScript bigCounterScript = (BigCounterScript)bigCounter.GetComponent(typeof(BigCounterScript)); bigCounterScript.startSessionCountdown(); } }
private void Awake() { instance = this; }