//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; } }
public void OnButtonClic(string ButtonName) { switch (ButtonName) { case "BuyCoins": DeActive(); InnAppMenuParent.SetActive(true); MainMenu.currentScreen = MainMenu.MenuScreens.InnAppmenu; SoundController.Static.playSoundFromName("Click"); break; } }
//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); }
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); }