public void InitButton(string sceneName, LevelSelectScreen screen) { this.screen = screen; GetComponentInChildren <Text>().text = sceneName; this.sceneName = sceneName; UpdateButton(); }
void Awake() { LevelSelectScreen = CreateGameObject.CreateChildGameObject <LevelSelectScreen>(transform).GetComponent <LevelSelectScreen>(); OptionsScreen = CreateGameObject.CreateChildGameObject <OptionsScreen>(transform).GetComponent <OptionsScreen>(); GraphicOptionsSubScreen = CreateGameObject.CreateChildGameObject <GraphicOptionsSubScreen>(transform).GetComponent <GraphicOptionsSubScreen>(); AudioOptionsSubScreen = CreateGameObject.CreateChildGameObject <AudioOptionsSubScreen>(transform).GetComponent <AudioOptionsSubScreen>(); ControlsOptionsSubScreen = CreateGameObject.CreateChildGameObject <ControlsOptionsSubScreen>(transform).GetComponent <ControlsOptionsSubScreen>(); GameOptionsSubScreen = CreateGameObject.CreateChildGameObject <GameOptionsSubScreen>(transform).GetComponent <GameOptionsSubScreen>(); }
public IntoTheBlaze() { graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = 1024, PreferredBackBufferHeight = 640 }; Window.Title = "Into The Blaze"; graphics.ApplyChanges(); Content.RootDirectory = "Content"; MenuScreen = new MenuScreen(); LevelSelectScreen = new LevelSelectScreen(); CreditsScreen = new CreditsScreen(); LevelScreen = new LevelScreen(); LevelEndScreen = new LevelEndScreen(); screen = null; updateFps = new Queue <float>(); updateFps.Enqueue(0); drawFps = new Queue <float>(); drawFps.Enqueue(0); }
//ajouter private void ChangePage(LevelSelectScreen levelSelectMenu) { throw new NotImplementedException(); }
protected override void Awake() { base.Awake(); levelMenuManager = GetComponent <LevelSelectScreen>(); }