Esempio n. 1
0
        IEnumerator MoveAndAttack(EnemyAI enemy)
        {
            yield return(StartCoroutine(MoveToTarget(enemy.gameObject)));

            weaponSystem.AttackTarget(enemy.gameObject);
        }
        IEnumerator MoveAndPowerAttack(EnemyAI enemy)
        {
            yield return(StartCoroutine(MoveToTarget(enemy.gameObject)));

            abilities.AttemptSpecialAbility(0, enemy.gameObject);
        }