void Awake() { player = GameObject.FindGameObjectWithTag (Tags.player).transform; wayPoints = transform.Find ("waypoints").GetComponent<WayPoints>(); targetWayPointIndex = wayPoints.points.Length-1; envGenerator=Camera.main.GetComponent<EnvGenerator>(); }
void Awake() { envGenerator = Camera.main.GetComponent <EnvGenerator> (); prisoner = this.transform.Find("Prisoner").transform; stream.Open(); }
void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player).transform; wayPoints = transform.Find("waypoints").GetComponent <WayPoints>(); targetWayPointIndex = wayPoints.points.Length - 1; envGenerator = Camera.main.GetComponent <EnvGenerator>(); }
private void PopulateBoard() { Layer solid = board ["Solid"]; EnvGenerator env = board.GetComponent <EnvGenerator> (); env.Generate(solid); }
// private Forest forest; void Awake() { envGenerator = Camera.main.GetComponent <EnvGenerator>(); // forest=GameObject.Find("forest_1").GetComponent<Forest>(); prisoner = this.transform.FindChild("Prisoner").transform; }
// private Forest forest; void Awake() { envGenerator=Camera.main.GetComponent<EnvGenerator>(); // forest=GameObject.Find("forest_1").GetComponent<Forest>(); prisoner=this.transform.FindChild("Prisoner").transform; }
void Awake() { env = Camera.main.GetComponent<EnvGenerator>(); animation = transform.Find("Prisoner").animation; }
void Awake() { env = Camera.main.GetComponent <EnvGenerator>(); animation = transform.Find("Prisoner").GetComponent <Animation>(); }