void Update() { if (isDone) { gameOver.SetActive(true); trsrpt.GameOver(); trscrpt.GameOver(); } }
void Update() { CurrentTime -= IncreaseT * Time.deltaTime; transform.localScale = new Vector3((CurrentTime / MaxTime), 1, 1); if (CurrentTime <= 0) { // trsrpt.GameOver (); trscrpt.GameOver(); winScore.SetActive(true); Destroy(tapRef); Destroy(triggerRef); if (colRef._score == colRef._shtuki) { ConditionToWin(); } else { gameOver.SetActive(true); } } }