示例#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();
    }
示例#2
0
 public void SetMaxHealth(int value)
 {
     _chars.SetMaxHealth(value);
     _UI.UpdateHealthStatus(_chars.Health, _chars.MaxHealth);
 }