// Use this for initialization void Start() { GetWaypoints(); GetSoldiers(); script = GameObject.FindObjectOfType <panicTrigger>(); }
// Use this for initialization void Start() { animator = GetComponent <Animator>(); navMeshAgent = GetComponent <NavMeshAgent>(); script = GameObject.FindObjectOfType <panicTrigger>(); }
private void Start() { script = GameObject.FindObjectOfType <panicTrigger>(); }