Exemplo n.º 1
0
    private IEnumerator AttackPlayer()
    {
        IntenAnim.Play("AttackingAnimation");
        yield return(new WaitForSeconds(0.5f));

        playerManager.DamagePlayer(AttackIntentAmount);

        // reduce attack intent amount
        AttackIntentAmount = 0;

        // enemy parasite heal
        if (BuffManager.parasite > 0)
        {
            Heal(BuffManager.parasite);
        }

        // player bramble damage
        var bramble = playerManager.GetComponentInParent <PlayerBuffManager>().bramble;

        if (bramble > 0)
        {
            this.Damage(bramble);
        }
        UIManager.UpdateIntentAlphas();
    }