Ejemplo n.º 1
0
 void Start()
 {
     prefabStorage = new PrefabStorage();
     levelBuilder  = new LevelBuilder(this);
     meshManager   = new MeshManager(levelBuilder, prefabStorage, grid);
     GameObject.Find("WaterDrop").GetComponent <PlayerController>().Builder = levelBuilder;
     meshManager.CreateRoad();
     isPlaying = true;
 }
Ejemplo n.º 2
0
 void Start()
 {
     objectStorage = new ObjectStorage();
     levelManager  = new LevelManager(this);
     meshManager   = new MeshManager(levelManager, objectStorage, grid);
     GameObject.Find("water").GetComponent <Spacing>().Manager = levelManager;
     meshManager.CreateRoad();
     isPlaying = true;
 }