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() { 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; }