public void OnInitializeChunk(StageManager stageManager, Point chunkIndex)
        {
            if(!probability.IsWinning)
            {
                return;
            }

            var creator = new CreatePrefab(this.prefab);
            creator.Create(this.gameObject, this.gameObject);
        }
Ejemplo n.º 2
0
 public GameObject CreateWall(StageManager stageManager, Point chunkIndex, Point position)
 {
     return stageManager.CreateStageObject(this.transform, this.wallPrefab, chunkIndex, position);
 }
Ejemplo n.º 3
0
 public void Initialize(StageManager stageManager, Point index)
 {
     this.index = index;
     this.stageManager = stageManager;
 }