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); }
protected override void OnBecomeActive() { character = Target.GetComponent <AIWalker>(); enemy = GetClosestEnemy(false); }
protected override void OnBecomeActive() { character = Target.GetComponent <AIWalker>(); }