コード例 #1
0
ファイル: TotalCoins.cs プロジェクト: fctony/Ninja-parkour
 //for buying coins
 public void OnButtonClic(string ButtonName)
 {
     switch (ButtonName)
     {
     case "BuyCoins":
         DeActive();
         InnAppMenuParent.SetActive(true);
         MainMenuScreens.currentScreen = MainMenuScreens.MenuScreens.InnAppmenu;      //for moving inapp menu state
         SoundController.Static.PlayClickSound();                                     //for click sound
         break;
     }
 }
コード例 #2
0
 public void OnButtonClic(string ButtonName)
 {
     switch (ButtonName)
     {
     case "BuyCoins":
         DeActive();
         InnAppMenuParent.SetActive(true);
         MainMenu.currentScreen = MainMenu.MenuScreens.InnAppmenu;
         SoundController.Static.playSoundFromName("Click");
         break;
     }
 }
コード例 #3
0
ファイル: TotalCoins.cs プロジェクト: fctony/Ninja-parkour
 //for disable all menu screens
 void DeActive()
 {
     MainMenuParent.SetActive(false);
     LoadingMenuParent.SetActive(false);
     PlayerSelectionParent.SetActive(false);
     ControlselectionMenuParent.SetActive(false);
     CredtsMenuParent.SetActive(false);
     ByPopupMenuParent.SetActive(false);
     UnSufficentCoinsMenuParent.SetActive(false);
     LevelSelectionMenuParent.SetActive(false);
     StoreMenuParent.SetActive(false);
     InnAppMenuParent.SetActive(false);
     UnsufficentCoinsForPlayerselectionMenu.SetActive(false);
 }
コード例 #4
0
 void DeActive()
 {
     MainMenuParent.SetActive(false);
     LoadingMenuParent.SetActive(false);
     PlayerSelectionmenuParent.SetActive(false);
     PlayerSelectionWithCamera.SetActive(false);
     CreditsMenuParent.SetActive(false);
     ByPopupMenuParent.SetActive(false);
     InSufficentCoinsMenuParent.SetActive(false);
     LevelSelectionMenuParent.SetActive(false);
     UpgradesMenuParent.SetActive(false);
     InnAppMenuParent.SetActive(false);
     InsufficentCoinsForPlayerselectionMenu.SetActive(false);
     MissionsMenuParent.SetActive(false);
 }