private void ensureScenesInstantiated() { if (scenesInstantiated) return; scenes[0] = new TitleScene(sceneManager); scenes[1] = new SceneOne(sceneManager); scenes[2] = new SceneTwo(sceneManager); var sceneTwo = new SceneTwo(sceneManager); scenes[2] = sceneTwo; var sceneThree = new SceneThree(sceneManager, sceneTwo.room); scenes[3] = sceneThree; var sceneFour = new SceneFour(sceneManager, sceneThree.room); scenes[4] = sceneFour; scenes[5] = new SceneFive(sceneManager); scenes[6] = new SceneSix(sceneManager); scenes[7] = new SceneSeven(sceneManager); var sceneEight = new SceneEight(sceneManager); scenes[8] = sceneEight; scenes[9] = new SceneNine(sceneManager, sceneEight.confetti); scenes[10] = new SceneTen(sceneManager); scenes[11] = new SceneEleven(sceneManager); var sceneTwelve = new SceneTwelve(sceneManager); scenes[12] = sceneTwelve; var sceneThirteen = new SceneThirteen(sceneManager, sceneTwelve.fallingGuyProp); scenes[13] = sceneThirteen; scenes[14] = new SceneFourteen(sceneManager, sceneThirteen.fallingGuyProp); scenes[15] = new Continued(sceneManager); scenesInstantiated = true; }
private void ensureScenesInstantiated() { if (scenesInstantiated) { return; } scenes[0] = new TitleScene(sceneManager); scenes[1] = new SceneOne(sceneManager); scenes[2] = new SceneTwo(sceneManager); var sceneTwo = new SceneTwo(sceneManager); scenes[2] = sceneTwo; var sceneThree = new SceneThree(sceneManager, sceneTwo.room); scenes[3] = sceneThree; var sceneFour = new SceneFour(sceneManager, sceneThree.room); scenes[4] = sceneFour; scenes[5] = new SceneFive(sceneManager); scenes[6] = new SceneSix(sceneManager); scenes[7] = new SceneSeven(sceneManager); var sceneEight = new SceneEight(sceneManager); scenes[8] = sceneEight; scenes[9] = new SceneNine(sceneManager, sceneEight.confetti); scenes[10] = new SceneTen(sceneManager); scenes[11] = new SceneEleven(sceneManager); var sceneTwelve = new SceneTwelve(sceneManager); scenes[12] = sceneTwelve; var sceneThirteen = new SceneThirteen(sceneManager, sceneTwelve.fallingGuyProp); scenes[13] = sceneThirteen; scenes[14] = new SceneFourteen(sceneManager, sceneThirteen.fallingGuyProp); scenes[15] = new Continued(sceneManager); scenesInstantiated = true; }