public void ExitGame()
 {
     if (totalScore == 0f)
     {
         if (pooped == 3)
         {
             exit1.EndLevel();
         }
         else
         {
             exit2.EndLevel();
         }
     }
     else
     {
         if (totalScore > 0 && totalScore <= 750)
         {
             exit3.EndLevel();
         }
         else if (totalScore > 750 && totalScore <= 1500)
         {
             exit4.EndLevel();
         }
         else if (totalScore > 1500)
         {
             exit5.EndLevel();
         }
     }
 }
Exemple #2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.TryGetComponent(out PlayerController playerController))
     {
         Debug.Log("Ended game");
         exit.EndLevel();
     }
 }
Exemple #3
0
        private IEnumerator CountTo10()
        {
            yield return(new WaitForSeconds(5));

            _endScreen.SetActive(true);
            yield return(new WaitForSeconds(5));

            _exit.EndLevel();
        }
Exemple #4
0
        private IEnumerator CountTo5()
        {
            yield return(new WaitForSeconds(5));

            _exit.EndLevel();
        }
Exemple #5
0
 private void ActOnLevelWin()
 {
     Debug.Log("[Team19] Level Won");
     _levelWinExit.EndLevel();
 }
Exemple #6
0
 private void ActOnLevelFail()
 {
     Debug.Log("[Team19] Level Failed");
     _levelFailExit.EndLevel();
 }