Esempio n. 1
0
    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();
    }
Esempio n. 2
0
 public void SetMaxStamina(int value)
 {
     _chars.SetMaxStamina(value);
     _UI.UpdateStaminaStatus(_chars.Stamina, _chars.MaxStamina);
 }