示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     agent   = GetComponent <NavMeshAgent>();
     chooser = GetComponent <EnemyDestinationChooser>();
     spotter = GetComponent <EnemyPlayerSpotter>();
     player  = spotter.Player;
     anim    = GetComponentInChildren <Animator>();
 }
 // Start is called before the first frame update
 void Start()
 {
     spotter     = GetComponent <EnemyPlayerSpotter>();
     pathFinding = GetComponent <EnemyPathFinding>();
     Invoke("ChooseRandomLocation", 2);
     alreadyInvoking = true;
     tooFarSec       = Random.Range(2, 6);
 }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     spotter = GetComponentInParent <EnemyPlayerSpotter>();
     chooser = GetComponentInParent <EnemyDestinationChooser>();
 }