Пример #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>();
 }
Пример #2
0
    void Awake()
    {
        envGenerator = Camera.main.GetComponent <EnvGenerator> ();
        prisoner     = this.transform.Find("Prisoner").transform;

        stream.Open();
    }
Пример #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>();
 }
Пример #4
0
    private void PopulateBoard()
    {
        Layer        solid = board ["Solid"];
        EnvGenerator env   = board.GetComponent <EnvGenerator> ();

        env.Generate(solid);
    }
Пример #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;
    }
Пример #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;
 }
Пример #7
0
 void Awake() {
     env = Camera.main.GetComponent<EnvGenerator>();
     animation = transform.Find("Prisoner").animation;
 }
Пример #8
0
 void Awake()
 {
     env       = Camera.main.GetComponent <EnvGenerator>();
     animation = transform.Find("Prisoner").GetComponent <Animation>();
 }