Esempio n. 1
0
 protected void Start()
 {
     chase         = GetComponent <AIChaseBehaviour>();
     layerMask     = 1 << LayerMask.NameToLayer("Level");
     currentTarget = AIAnalysis.GetClosestEnemy(skillUser.userStats.enemyEntitySets, transform, skillUser.userStats, false, layerMask);
     StartCoroutine(CheckIfTargetWithinRange());
 }
Esempio n. 2
0
 protected void Start()
 {
     chase         = GetComponent <AIChaseBehaviour>();
     layerMask     = 1 << LayerMask.NameToLayer("Level");
     initialPoint  = transform.position;
     currentTarget = AIAnalysis.GetClosestEnemy(skillUser.userStats.enemyEntitySets, transform, skillUser.userStats, false, layerMask);
     moveTimer     = timeToMoveAgain;
     attackTimer   = timeToAttackAgain;
     StartCoroutine(CheckIfTargetWithinRange());
 }
Esempio n. 3
0
 public void SetTarget(Transform target)
 {
     chase        = GetComponent <AIChaseBehaviour>();
     chase.target = target;
     triggered    = false;
 }
Esempio n. 4
0
 private void Awake()
 {
     chase = GetComponent <AIChaseBehaviour>();
 }