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 SetMaxHealth(int value) { _chars.SetMaxHealth(value); _UI.UpdateHealthStatus(_chars.Health, _chars.MaxHealth); }