//for button control public void OnButtonClick(string ButtonName) { switch (ButtonName) { //for ok button case "ok": SoundController.Static.PlayClickSound(); //for click sound UnsufficentCoinsForPlayerselectionMenu.SetActive(false); //for unsufficent menu Disables InAppMenuParent.SetActive(true); //inapp menu Enables MainMenuScreens.currentScreen = MainMenuScreens.MenuScreens.InnAppmenu; //for moving inapp menu state break; } }
public void OnButtonClick(string ButtonName) { switch (ButtonName) { case "ok": SoundController.Static.playSoundFromName("Click"); InsufficentCoinsForPlayerselectionMenu.SetActive(false); //InAppMenuParent.SetActive(true); //MainMenu.currentScreen=MainMenu.MenuScreens.InnAppmenu; break; case "more": SoundController.Static.playSoundFromName("Click"); InsufficentCoinsForPlayerselectionMenu.SetActive(false); InAppMenuParent.SetActive(true); MainMenu.currentScreen = MainMenu.MenuScreens.InnAppmenu; break; } }