示例#1
0
 void Awake()
 {
     player = GameObject.FindGameObjectWithTag (Tags.player).transform;
     wayPoints = transform.Find ("waypoints").GetComponent<WayPoints> ();
     targetIndex = wayPoints.points.Length - 2;
     envGenerator = Camera.main.GetComponent<EnvGenrator> ();
 }
示例#2
0
 void Awake()
 {
     player       = GameObject.FindGameObjectWithTag(Tags.player).transform;
     wayPoints    = transform.Find("waypoints").GetComponent <WayPoints> ();
     targetIndex  = wayPoints.points.Length - 2;
     envGenerator = Camera.main.GetComponent <EnvGenrator> ();
 }
 void Awake()
 {
     envGenerator = Camera.main.GetComponent<EnvGenrator> ();
     prisoner = this.transform.Find ("Prisoner").transform;
 }
 void Awake()
 {
     envGenerator = Camera.main.GetComponent <EnvGenrator> ();
     prisoner     = this.transform.Find("Prisoner").transform;
 }