void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag.Equals("Enemy")) { logic.TurnOffButtons(); gameOver.Enable(); } }
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(); } }