Ejemplo n.º 1
0
 private void Awake()
 {
     _isDead    = false;
     _maxHealth = 100;
     OnSetMaxHealth.Invoke(_maxHealth);
     _currentHealth = _maxHealth;
 }
Ejemplo n.º 2
0
 //This function is called when the enemy respawns so it has the correct amount of health again
 public void ResetHealth()
 {
     _isDead        = false;
     _currentHealth = _maxHealth;
     OnSetMaxHealth.Invoke(_maxHealth);
 }