private void Start() { state = gameState.Start; stageCreater = Instantiate(stageCreater); stageCreater.transform.parent = transform; player = Instantiate(player); player.transform.parent = transform; footPrinter = Instantiate(footPrinter); footPrinter.transform.parent = transform; effectSpawner = Instantiate(effectSpawner); effectSpawner.transform.parent = transform; effectSpawner2 = Instantiate(effectSpawner2); effectSpawner2.transform.parent = transform; stageCreater.footPrinter = footPrinter; stageCreater.effectSpawner = effectSpawner; stageCreater.effectSpawner2 = effectSpawner2; player.haveMapDateObject = stageCreater; }
private void Start() { //state = gameState.Game; state = gameState.Ready; //player.Reset(); //blackScreen.color = new Color(0, 0, 0, 0.0f); blackScreen.color = new Color(0, 0, 0, 0.8f); stageCreater = Instantiate(stageCreater); stageCreater.transform.parent = transform; player = Instantiate(player); player.transform.parent = transform; footPrinter = Instantiate(footPrinter); footPrinter.transform.parent = transform; }