Beispiel #1
0
 public void EnemyHit()
 {
     // Debug.Log("DAMAGE! in " + this.name); // TODO - delete debug print
     _currentLife--;
     if (_currentLife <= 0)
     {
         _gameManager.Enemies.ReturnEnemyElement(this.gameObject);
         ResetEnemy();
     }
     else
     {
         _lifeBar.ChangeValueIn(-1); // CHECK - Hardcoded damage value
     }
 }