Exemplo n.º 1
0
 public void OnSlotsOutButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     MG_UIManager.Instance.ShowGamePanel(MG_GamePanelType.SlotsPanel);
     UpdateBottomButtonState(MG_GamePanelType.SlotsPanel);
     SetSpecialToken(MG_SpecialTokenType.SlotsToken);
     if (!isInMG)
     {
         HideOrShowMenuButtons(true);
         MG_Manager.Instance.SetBGState(true);
     }
 }
Exemplo n.º 2
0
 void OnSlotsButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!GameManager.Instance.canRollDice)
     {
         return;
     }
     img_meninScratchIcon.sprite      = sp_ScratchOff;
     img_meninSlotsIcon.sprite        = sp_SlotsOn;
     img_meninWheelIcon.sprite        = sp_WheelOff;
     MG_SaveManager.Current_GamePanel = (int)MG_PopPanelType.SlotsPanel;
     MG_Manager.Instance.isInMG       = false;
     MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.SlotsPanel);
     UpdateAllContent();
     MG_Manager.Instance.StartFadeIn_Bg();
 }
Exemplo n.º 3
0
 void OnAdButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (isNoTicket)
     {
         clickTime++;
         MG_Manager.ShowRV(OnTicketAdCallback, clickTime, "scratch get ticket");
         return;
     }
     else if (isLock)
     {
         clickTime++;
         MG_Manager.ShowRV(OnLockAdCallback, clickTime, "scratch unlock");
         return;
     }
 }
Exemplo n.º 4
0
 void OnSettingOrBackButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (isInMG)
     {
         MG_Manager.Instance.CloseMGPanel();
     }
     else
     {
         MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.SettingPanel);
     }
 }
Exemplo n.º 5
0
 void OnSpecialButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     OnMaskButtonClick();
     if (MG_Manager.Instance.isGuid)
     {
         return;
     }
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (packB)
     {
         MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.ShopPanel);
     }
 }
Exemplo n.º 6
0
 void OnBackOrSettingButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (isInMG)
     {
         MG_UIManager.Instance.CloseCurrentGamePanel();
         SetMGButtonState(false);
     }
     else
     {
         MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.SettingPanel);
     }
 }
Exemplo n.º 7
0
 void OnX10ButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (mutiplesIndex < mutiples.Length - 1 && MG_Manager.Instance.Get_Save_Gold() >= baseNum * mutiples[mutiplesIndex + 1])
     {
         mutiplesIndex++;
         if (mutiplesIndex > mutiples.Length - 1)
         {
             mutiplesIndex = mutiples.Length - 1;
         }
     }
     else
     {
         mutiplesIndex = 0;
     }
     text_X10.text = "x" + mutiples[mutiplesIndex];
 }
Exemplo n.º 8
0
 public void OnScratchButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (!isInMG)
     {
         SetMGButtonState(true);
     }
     if (go_scratchRP.activeSelf)
     {
         go_scratchRP.SetActive(false);
     }
     MG_UIManager.Instance.ShowGamePanel(MG_GamePanelType.ScratchPanel);
     UpdateBottomButtonState(MG_GamePanelType.ScratchPanel);
     SetSpecialToken(MG_SpecialTokenType.ScratchToken);
 }
Exemplo n.º 9
0
 public void OnDiceButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (!isInMG)
     {
         SetMGButtonState(true);
     }
     if (!isInMG)
     {
         SetMGButtonState(true);
     }
     MG_UIManager.Instance.ShowGamePanel(MG_GamePanelType.DicePanel);
     UpdateBottomButtonState(MG_GamePanelType.DicePanel);
     SetSpecialToken(MG_SpecialTokenType.DiceToken);
 }
Exemplo n.º 10
0
 void OnMenuinSlotsButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (MG_SaveManager.Current_GamePanel == (int)MG_PopPanelType.SlotsPanel)
     {
         return;
     }
     img_meninScratchIcon.sprite = sp_ScratchOff;
     img_meninSlotsIcon.sprite   = sp_SlotsOn;
     img_meninWheelIcon.sprite   = sp_WheelOff;
     MG_Manager.Instance.isInMG  = true;
     MG_UIManager.Instance.ClosePopPanelAsync((MG_PopPanelType)MG_SaveManager.Current_GamePanel);
     MG_SaveManager.Current_GamePanel = (int)MG_PopPanelType.SlotsPanel;
     MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.SlotsPanel);
     UpdateAllContent();
 }
Exemplo n.º 11
0
 void OnScratchOutButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     if (!MG_Manager.Instance.canChangeGame)
     {
         return;
     }
     if (go_scratchRP.activeSelf)
     {
         go_scratchRP.SetActive(false);
     }
     if (go_forceGuid.activeSelf)
     {
         go_forceGuid.SetActive(false);
         StopCoroutine("AutoMoveEnterMGGuidHand");
         MG_SaveManager.GuidMG = true;
     }
     MG_UIManager.Instance.ShowGamePanel(MG_GamePanelType.ScratchPanel);
     UpdateBottomButtonState(MG_GamePanelType.ScratchPanel);
     SetMGState(true);
     SetSpecialToken(MG_SpecialTokenType.ScratchToken);
 }
Exemplo n.º 12
0
        void OnSpinButtonClick()
        {
            MG_Manager.Play_ButtonClick();
            if (isSpining)
            {
                return;
            }
            if (!needAd)
            {
                needAd = true;
            }
            else
            {
                clickTime++;
                MG_Manager.ShowRV(OnSpinAdCallback, clickTime, "dice slots extra spin");
                return;
            }
            isSpining = true;

            rewardNum = MG_Manager.Instance.Random_DiceSlotsReward(out rewardIsGold, out rewardMutiple);
            StartCoroutine(StartSpin());
        }
Exemplo n.º 13
0
 void OnNothanksClick()
 {
     MG_Manager.Play_ButtonClick();
     if (MG_Manager.Instance.Get_Save_WetherSign())
     {
         int day = MG_Manager.Instance.Get_Save_NextSignDay();
         MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.SignPanel);
         MG_Manager.Instance.Signin(false);
         if (day < 7)
         {
             MG_Manager.Instance.Show_SignRewardPanel_Reward(isGold[day] ? MG_PopRewardPanel_RewardType.SignGold : MG_PopRewardPanel_RewardType.SignCash, rewards[day], 1);
         }
         else
         {
             MG_Manager.Instance.Show_PopDoublePanel_Reward(MG_PopDoublePanel_RewardType.SignScratchTicket, 1);
         }
         MG_UIManager.Instance.UpdateSignRP();
     }
     else
     {
         MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.SignPanel);
     }
 }
Exemplo n.º 14
0
        void OnSpinButtonClick()
        {
            MG_Manager.Play_ButtonClick();
            if (isSpining)
            {
                return;
            }
            if (!needAd)
            {
                needAd = true;
                go_adicon.SetActive(true);
                rect_spin.localPosition = new Vector2(26, 4);
            }
            else
            {
                clickTime++;
                MG_Manager.ShowRV(OnSpinAdCallback, clickTime, "dice slots extra spin");
                return;
            }
            isSpining = true;

            rewardNum = MG_Manager.Instance.Random_DiceSlotsReward(out rewardIsGold);
            StartCoroutine(StartSpin());
        }
Exemplo n.º 15
0
 void OnBuyClick()
 {
     MG_Manager.Play_ButtonClick();
     clickTime++;
     MG_Manager.ShowRV(OnBuyCallback, clickTime, "buy dice energy");
 }
Exemplo n.º 16
0
 void OnCloseClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.BuyDiceEnergy);
 }
Exemplo n.º 17
0
 void OnNoClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.Rateus);
 }
Exemplo n.º 18
0
 void OnGetButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_Manager.Instance.Show_PopTipsPanel("Not enough money to exchange.");
 }
Exemplo n.º 19
0
 void OnGiveup()
 {
     MG_Manager.Play_ButtonClick();
     MG_Manager.ShowIV(Giveup, "Giveup Gift , reward is " + MG_Manager.Instance.RewardType);
 }
Exemplo n.º 20
0
 void OnAdClick()
 {
     MG_Manager.Play_ButtonClick();
     clickTime++;
     MG_Manager.ShowRV(AdCallback, clickTime, "Get more gold");
 }
Exemplo n.º 21
0
 void OnCloseButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_Manager.ShowIV(OnNormalGiveupButtonClick, "dice marquee giveup, type:" + _rewardType);
 }
Exemplo n.º 22
0
 void OnGiveupButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_Manager.ShowIV(OnGiveupPopAdCallback, "extra reward giveup , type : " + _rewardType);
 }
Exemplo n.º 23
0
 void OnOpenButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     clickTime++;
     MG_Manager.ShowRV(OnOpenAdCallback, clickTime, "open extra reward");
 }
Exemplo n.º 24
0
 void OnClaim()
 {
     MG_Manager.Play_ButtonClick();
     MG_Manager.ShowIV(GiveupReward, "Givp up " + RewardType + " Reward in " + RewardPanelType + " RewardPanel");
 }
Exemplo n.º 25
0
 void OnWheelOutButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.OutWheelPanel);
 }
Exemplo n.º 26
0
 void OnGiveup()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.CashRewardPanel);
 }
Exemplo n.º 27
0
 void OnSaveWalletClick()
 {
     MG_Manager.Play_ButtonClick();
     clickTime++;
     MG_Manager.ShowRV(OnAdCallback, clickTime, "get" + (MG_SaveManager.Current_GamePanel == 0 ? "Scratch" : "Slots") + "  cash");
 }
Exemplo n.º 28
0
 void OnCloseButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.SettingPanel);
 }
Exemplo n.º 29
0
 void OnWheelButtonClick()
 {
     MG_Manager.Play_ButtonClick();
     MG_UIManager.Instance.ClosePopPanelAsync(MG_PopPanelType.SettingPanel);
     MG_UIManager.Instance.MenuPanel.OnWheelOutButtonClick();
 }