void Start() { ToDestroy = WillBeDestroyed.GetComponent <NavMeshAgent>(); script = WillBeDestroyed.GetComponent <WayPointPatrol>(); }
private void Start() { AI = GetComponent <WayPointPatrol>(); player = GetComponent <Transform>(); }
void Start() { ToDestroy = WillBeDestroyed.GetComponent <NavMeshAgent>(); script = WillBeDestroyed.GetComponent <WayPointPatrol>(); }
private void Start() { AI = GetComponent <WayPointPatrol>(); player = GetComponent <Transform>(); }