Esempio n. 1
0
 void Start()
 {
     SectionDivider = Instantiate(SectionDividerPrefab)  as GameObject;
     SectionDivider.SetActive(false);
     WallPool           = FindObjectOfType <WallPooling> ();
     WSpawner           = FindObjectOfType <WallSpawner> ();
     HazPool            = FindObjectOfType <HazardPool> ();
     LastWallSpawnerPos = WSpawner.gameObject.transform.position;
 }
Esempio n. 2
0
 void Start()
 {
     wallIndexesToRemove = new List <int> ();
     newPosition         = new Vector3(transform.position.x, 0, 0);
     SpawnOffset         = new Vector3(0, 7, 0);
     pool        = GetComponent <WallPooling> ();
     ActiveWalls = new List <GameObject> ();
     BuildAWall();
 }
Esempio n. 3
0
 private void Awake()
 {
     Instance = this;
 }