Beispiel #1
0
 //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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #3
0
 //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);
 }
Beispiel #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);
 }