Пример #1
0
 public static void gotoCredits()
 {
     ISoundManager.PlayTransitions();
     Futile.stage.RemoveChild(blackBar1);
     Futile.stage.RemoveChild(blackBar2);
     if(_currentPage != null)
     {
         _stage.RemoveChild(_currentPage);
     }
     _currentPage = new CreditsPage();
     _stage.AddChild(_currentPage);
     _currentPage.Start();
     Futile.stage.AddChild(blackBar1);
     Futile.stage.AddChild(blackBar2);
     blackBar1.MoveToTop();
     blackBar2.MoveToTop();
 }
Пример #2
0
 public static void goToGame()
 {
     ISoundManager.PlayMenuTransitions();
     Futile.stage.RemoveChild(blackBar1);
     Futile.stage.RemoveChild(blackBar2);
     inGame = true;
     if(_currentPage != null)
     {
         _stage.RemoveChild(_currentPage);
     }
     _currentPage = new OrangeGameScript();
     _stage.AddChild(_currentPage);
     _currentPage.Start();
     Futile.stage.AddChild(blackBar1);
     Futile.stage.AddChild(blackBar2);
     blackBar1.MoveToTop();
     blackBar2.MoveToTop();
 }