Exemplo 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();
    }
Exemplo n.º 2
0
 public void ChangeStamina(int delta)
 {
     _chars.ChangeStamina(delta);
     //Debug.Log("Change stamina " + delta);
     _UI.UpdateStaminaStatus(_chars.Stamina, _chars.MaxStamina);
 }