Inheritance: MonoBehaviour
Ejemplo 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");
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     detect = gameObject.transform.parent.GetComponentInChildren<AI_PlayerDetection>();
     active = false;
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     playerDetection = detector.GetComponent<AI_PlayerDetection>();
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     detect = gameObject.transform.parent.GetComponentInChildren <AI_PlayerDetection>();
     active = false;
 }
Ejemplo 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>();
    }
Ejemplo 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");
    }