// Use this for initialization void Start() { InvokeRepeating("Flip", 0f, Random.Range(6f, 10f)); playerDetection = detector.GetComponent <AI_PlayerDetection>(); Player = GameObject.FindGameObjectWithTag("Player"); }
// Use this for initialization void Start() { detect = gameObject.transform.parent.GetComponentInChildren<AI_PlayerDetection>(); active = false; }
// Use this for initialization void Start() { playerDetection = detector.GetComponent<AI_PlayerDetection>(); }
// Use this for initialization void Start() { detect = gameObject.transform.parent.GetComponentInChildren <AI_PlayerDetection>(); active = false; }
private bool pursuitToPatrol = false; //lets us know when we switch from pursuit to patrol; // Use this for initialization void Start() { playerDetection = detector.GetComponent <AI_PlayerDetection>(); }
// Use this for initialization void Start() { InvokeRepeating ("Flip", 0f, Random.Range(6f,10f)) ; playerDetection = detector.GetComponent<AI_PlayerDetection>(); Player = GameObject.FindGameObjectWithTag ("Player"); }