private void Awake() { _senses = this.GetComponent <EnemySenses>(); _chars = this.GetComponent <EntityCharacteristics>(); _movementController = this.GetComponent <EnemyMovement>(); _chars.SetMaxHealth(100); _chars.SetMaxStamina(100); _chars.ChangeHealth(100); _chars.ChangeStamina(100); UpdateHealthInUI(); }
public void ChangeStamina(int delta) { _chars.ChangeStamina(delta); //Debug.Log("Change stamina " + delta); _UI.UpdateStaminaStatus(_chars.Stamina, _chars.MaxStamina); }