Ejemplo n.º 1
0
    void Awake()
    {
        _playerHealth.GetComponent <PlayerHealth>();
        _enemyAttackAnimation.GetComponent <EnemyAttackAnimation>();
        _enemyMovement        = GetComponent <EnemyMovement>();
        _enemybattleMechanics = GetComponent <EnemyBattleMechanics>();
        _spiritBar            = GetComponent <SpiritBar>();
        CurrentHealth         = MaxHealth;
        IsDead     = false;
        CanSpecial = false;

        Source = GetComponent <AudioSource>();
    }
Ejemplo n.º 2
0
    void Awake()
    {
        _playerHealth.GetComponent<PlayerHealth>();
        _enemyAttackAnimation.GetComponent<EnemyAttackAnimation>();
        _enemyMovement = GetComponent<EnemyMovement>();
        _enemybattleMechanics = GetComponent<EnemyBattleMechanics>();
        _spiritBar = GetComponent<SpiritBar>();
        CurrentHealth = MaxHealth;
        IsDead = false;
        CanSpecial = false;

        Source = GetComponent<AudioSource>();
    }