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

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