Inheritance: MonoBehaviour
Esempio n. 1
0
    // 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;
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     playerDetection = detector.GetComponent<AI_PlayerDetection>();
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     detect = gameObject.transform.parent.GetComponentInChildren <AI_PlayerDetection>();
     active = false;
 }
Esempio n. 5
0
    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>();
    }
Esempio n. 6
0
    // Use this for initialization
    void Start()
    {
        InvokeRepeating ("Flip", 0f, Random.Range(6f,10f)) ;

           playerDetection = detector.GetComponent<AI_PlayerDetection>();
           Player = GameObject.FindGameObjectWithTag ("Player");
    }