// 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); }
// Start is called before the first frame update void Start() { spotter = GetComponentInParent <EnemyPlayerSpotter>(); chooser = GetComponentInParent <EnemyDestinationChooser>(); }