Ejemplo n.º 1
0
 public override void OnBeforeEnter()
 {
     Stage.inst.onKeyDown.Add(OnKeyDown);
     this.contentPane.MakeFullScreen();
     StartBG = this.contentPane.GetChild("StartBG").asImage;
     StartBG.MakeFullScreen();
     Tran        = this.contentPane.GetTransition("Glitter");
     gliterImage = this.contentPane.GetChild("GlitterImage").asImage;
     this.contentPane.GetTransition("SceneStart").Play();
     StartButtonGroup = this.contentPane.GetChild("StartButton").asGroup;
     NewGameButton    = this.contentPane.GetChild("NewGameButton").asButton;
     LoadGameButton   = this.contentPane.GetChild("LoadGameButton").asButton;
     NewGameButton.onClick.Add(OnNewGameButtonDown);
     LoadGameButton.onClick.Add(OnLoadGameButtonDown);
     StartButtonGroup.visible = false;
 }