Esempio n. 1
0
 protected override void OnBecomeActive()
 {
     character  = Target.GetComponent <AIWalker>();
     targetPos  = new Vector3(UnityEngine.Random.value, 0, UnityEngine.Random.value);
     targetPos *= 5;
     //Ray r = new Ray(targetPos + Vector3.up * 5000, Vector3.down);
 }
Esempio n. 2
0
 protected override void OnBecomeActive()
 {
     character = Target.GetComponent <AIWalker>();
     enemy     = GetClosestEnemy(false);
 }
Esempio n. 3
0
 protected override void OnBecomeActive()
 {
     character = Target.GetComponent <AIWalker>();
 }