Ejemplo n.º 1
0
 void Awake()
 {
     player           = GameObject.FindGameObjectWithTag(Tags.player).transform;
     points           = transform.Find("waypoint").GetComponent <Waypoints>();
     targetPointIndex = points.waypoints.Length - 2;
     evnGenerator     = Camera.main.GetComponent <EvnGenerator>();
 }
Ejemplo n.º 2
0
    };                                                       // 三个跑道的偏移值

    void Awake()
    {
        evnGenerator = Camera.main.GetComponent <EvnGenerator>();
        player       = GameObject.FindGameObjectWithTag(Tags.player).transform;
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Awake()
 {
     evnGenerator = Camera.main.GetComponent <EvnGenerator>();
     prisoner     = this.transform.Find("Prisoner").transform;
 }