public override void Act(EnemyAI enemyAI)
 {
     Attack(enemyAI);
 }
Exemple #2
0
        IEnumerator MoveAndAttack(EnemyAI enemy)
        {
            yield return(StartCoroutine(MoveToTarget(enemy.gameObject)));

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

            specialAbilities.AttemptSpecialAbility(0, target.gameObject);
        }
Exemple #4
0
 public void UpdateState(EnemyAI enemyAI)
 {
     DoActions(enemyAI);
     CheckTransitions(enemyAI);
 }
Exemple #5
0
 public abstract void Act(EnemyAI enemyAI);
 public override void Act(EnemyAI enemyAI)
 {
     Patrol(enemyAI);
 }
Exemple #7
0
        private IEnumerator MoveAndPowerAttack(EnemyAI enemy)
        {
            yield return(StartCoroutine(MoveToEnemy(enemy)));

            abilities.UseSpecialAbilty(0, enemy.gameObject);
        }
Exemple #8
0
        IEnumerator MoveAndAttack(EnemyAI target)
        {
            yield return(StartCoroutine(MoveAndTarget(target)));

            weaponSystem.Attack(target.gameObject);
        }
Exemple #9
0
        bool IsTargetInRange(EnemyAI target)
        {
            float distanceToTarget = (target.transform.position - transform.position).magnitude;

            return(distanceToTarget <= weaponSystem.GetWeaponConfig().GetMaxAttackRange());
        }
Exemple #10
0
        private bool IsEnemyInRange(EnemyAI enemy)
        {
            float distanceToTarget = (enemy.transform.position - transform.position).magnitude;

            return(distanceToTarget <= weponSystem.GetCurrentWepon().GetMaxAttackRange());
        }
Exemple #11
0
        IEnumerator MoveAndPowerAttack(EnemyAI target)
        {
            yield return(StartCoroutine(MoveToTarget(target)));

            specialAbilities.AttemptSpecialAbility(currentAbilityIndex, target.gameObject);
        }
 public override void Act(EnemyAI enemyAI)
 {
     Chase(enemyAI);
 }
Exemple #13
0
        IEnumerator MoveAndPowerAttack(EnemyAI target)
        {
            yield return(StartCoroutine(MoveAndTarget(target)));

            abilities.AttemptSpecialAbility(2, target.gameObject);
        }
Exemple #14
0
        IEnumerator MoveAndPowerAttack(EnemyAI enemy)
        {
            yield return(StartCoroutine(MoveToTarget(enemy.gameObject)));

            abilities.AttemptSpecialAbility(0, enemy.gameObject);
        }
Exemple #15
0
 private void Start()
 {
     enemyAI = GetComponent <EnemyAI>();
 }
Exemple #16
0
 public abstract bool Decide(EnemyAI enemyAI);
 // Use this for initialization
 void Start()
 {
     enemy             = GetComponentInParent <EnemyAI>(); // Different to way player's health bar finds player
     healthBarRawImage = GetComponent <RawImage>();
 }