Exemple #1
0
 public void GoalComplete()
 {
     if (gameRunning)
     {
         return;
     }
     if (amountCompleted < counters.Length)
     {
         counters[amountCompleted].color = Color.green;
     }
     amountCompleted++;
     if (amountCompleted == 3)
     {
         winScreen.gameObject.SetActive(true);
         ghost.DisableMouse();
     }
 }