public override void GetDamage(int damage, Vector2 playerPosition, int percentToExplosion) { if (!shield.activeSelf) { base.GetDamage(damage, Vector2.zero, 100); ui.PlayerLifes.CheckPlayerLifes(HP); GetComponent <PlayerController>().DestroyBullets(); if (HP <= 0) { ui.ActivateGameOverText(); GameController.GameIsRunning = false; ApplicationController.canOpenHighScorePanel = true; ApplicationController.SaveScore(new PlayerScore(GameController.NickName, GameController.GameLevel + "", ui.Score.score + "")); } else { this.GetComponent <PlayerController>().SetStartPosition(); ActivateShield(3.0f); } } }