Exemple #1
0
    public IEnumerator desactive()
    {
        CharacterAnimations component = enemyAnimation.GetComponent <CharacterAnimations>();

        yield return(new WaitForSeconds(1f));

        component.Damage(false);
    }
Exemple #2
0
    void defend()
    {
        CharacterAnimations component = enemyAnimation.GetComponent <CharacterAnimations>();

        playerAnimation.Defend(true);

        shield.ActivateShield(true);

        component.Damage(true);
        StartCoroutine(desactive());
    }