Пример #1
0
 private void CheckWinCondition()
 {
     if (currentTime - startTime > winTime)
     {
         gameWon          = true;
         audioSource.clip = winGameSound;
         audioSource.Play();
         uiManager.DisplayWinPanel();
         StartCoroutine(LoadEndScreen());
     }
 }