Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag.Equals("Enemy"))
     {
         logic.TurnOffButtons();
         gameOver.Enable();
     }
 }
Ejemplo n.º 2
0
 private void LevelWon()
 {
     GameState.levelUp();
     TurnOffButtons();
     if (GameState.gameWon())
     {
         gameWon.Enable();
     }
     else if (GameState.level == 1)
     {
         eaterUnlock.Enable();
     }
     else if (GameState.level == 2)
     {
         doubleShooterUnlock.Enable();
     }
 }