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

        stream.Open();
    }
Example #3
0
 void Awake()
 {
     player              = GameObject.FindGameObjectWithTag(Tags.player).transform;
     wayPoints           = transform.Find("waypoints").GetComponent <WayPoints>();
     targetWayPointIndex = wayPoints.points.Length - 1;
     envGenerator        = Camera.main.GetComponent <EnvGenerator>();
 }
Example #4
0
    private void PopulateBoard()
    {
        Layer        solid = board ["Solid"];
        EnvGenerator env   = board.GetComponent <EnvGenerator> ();

        env.Generate(solid);
    }
Example #5
0
//	private Forest forest;

    void Awake()
    {
        envGenerator = Camera.main.GetComponent <EnvGenerator>();
//		forest=GameObject.Find("forest_1").GetComponent<Forest>();
        prisoner = this.transform.FindChild("Prisoner").transform;
    }
Example #6
0
 //    private Forest forest;
 void Awake()
 {
     envGenerator=Camera.main.GetComponent<EnvGenerator>();
     //		forest=GameObject.Find("forest_1").GetComponent<Forest>();
     prisoner=this.transform.FindChild("Prisoner").transform;
 }
Example #7
0
 void Awake() {
     env = Camera.main.GetComponent<EnvGenerator>();
     animation = transform.Find("Prisoner").animation;
 }
Example #8
0
 void Awake()
 {
     env       = Camera.main.GetComponent <EnvGenerator>();
     animation = transform.Find("Prisoner").GetComponent <Animation>();
 }