コード例 #1
0
 //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;
     }
 }
コード例 #2
0
    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;
        }
    }