Esempio n. 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> ();
 }
Esempio n. 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> ();
 }
Esempio n. 3
0
 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;
 }