public override void GenerateStage() { for (int x = 0; x < 10; x++) { for (int y = 0; y < 3; y++) { float positionX = x * 100.0f - 450.0f; float positionY = y * 40.0f + 70.0f; int colorCode = Random.Range(0, 7); prefabCreator.CreateNormalBlock(positionX, positionY, colorCode); } } skl144system = prefabCreator.CreateSKL144System(); prefabCreator.CreateCeilingSystem(); }
// Use this for initialization void Start() { skl144System = gameObjectSKL144System.GetComponent <SKL144Sytem>(); }