Exemplo n.º 1
0
 private void OnRestartButtonClick()
 {
     GameManager.PlayButtonClickSound();
     UIManager.ClosePopPanel(this);
     GameManager.SendAdjustGameOverEvent(true);
     GameManager.RestartGame();
 }
Exemplo n.º 2
0
 private void OnAdbuyCallback()
 {
     GameManager.AddEnergy(GameManager.addEnergyPerAd);
     GameManager.AddBuyEnergyTime();
     UIManager.FlyReward(Reward.Energy, GameManager.addEnergyPerAd, transform.position);
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 3
0
 private void OnCloseClick()
 {
     GameManager.PlayButtonClickSound();
     if (isSpining)
     {
         return;
     }
     GameManager.PlayIV("关闭转盘");
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 4
0
 private void OnRestartClick()
 {
     GameManager.PlayButtonClickSound();
     if (AnimationAutoEnd.IsAnimation)
     {
         return;
     }
     GameManager.SendAdjustGameOverEvent(false);
     GameManager.RestartGame();
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 5
0
        private void OnYesClick()
        {
            GameManager.PlayButtonClickSound();
#if UNITY_ANDROID
            Application.OpenURL("https://play.google.com/store/apps/details?id=com.MergeBall.LuckyGame.HugePrizes.Rewards");
#elif UNITY_IOS
            var url = string.Format(
                "itms-apps://itunes.apple.com/cn/app/id{0}?mt=8&action=write-review",
                "");
            Application.OpenURL(url);
#endif
            UIManager.ClosePopPanel(this);
        }
Exemplo n.º 6
0
 private void OnCloseIVCallback()
 {
     UIManager.ClosePopPanel(this);
     if (GameManager.WillShowGift > 0)
     {
         GameManager.WillShowGift--;
         UIManager.ShowPopPanelByType(UI_Panel.UI_PopPanel.GiftPanel);
     }
     else if (GameManager.WillShowSlots > 0)
     {
         GameManager.WillShowSlots--;
         UIManager.ShowPopPanelByType(UI_Panel.UI_PopPanel.SlotsPanel);
     }
 }
Exemplo n.º 7
0
        private void OnOpenAdCallback()
        {
            if (GameManager.isPropGift)
            {
                GameManager.isPropGift = false;
            }
            else
            {
                GameManager.AddOpenGiftBallNum();
            }
            Reward type = GameManager.RandomGiftReward(out int num);

            GameManager.ShowConfirmRewardPanel(type, num, needAd);
            UIManager.ClosePopPanel(this);
        }
Exemplo n.º 8
0
 private void OnAdBuyCallback()
 {
     if (isProp1)
     {
         GameManager.AddProp1Num(1);
         GameManager.SendAdjustPropChangeEvent(1, 2);
         UIManager.FlyReward(Reward.Prop1, 1, coinBuyButton.transform.position);
     }
     else
     {
         GameManager.AddProp2Num(1);
         GameManager.SendAdjustPropChangeEvent(2, 2);
         UIManager.FlyReward(Reward.Prop2, 1, coinBuyButton.transform.position);
     }
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 9
0
 private void OnCoinBuyClick()
 {
     GameManager.PlayButtonClickSound();
     GameManager.AddCoin(-needCoinNum);
     if (isProp1)
     {
         GameManager.AddProp1Num(1);
         UIManager.FlyReward(Reward.Prop1, 1, coinBuyButton.transform.position);
         GameManager.IncreaseByProp1NeedCoin();
         GameManager.SendAdjustPropChangeEvent(1, 1);
     }
     else
     {
         GameManager.AddProp2Num(1);
         UIManager.FlyReward(Reward.Prop2, 1, coinBuyButton.transform.position);
         GameManager.IncreaseByProp2NeedCoin();
         GameManager.SendAdjustPropChangeEvent(2, 1);
     }
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 10
0
 public void OnGuideEnd()
 {
     UIManager.ClosePopPanel(this);
     Destroy(gameObject);
     GameManager.LevelUp(true);
 }
Exemplo n.º 11
0
 private void OnCloseClick()
 {
     GameManager.PlayButtonClickSound();
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 12
0
 private void OnNothanksIVCallback()
 {
     GetReward();
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 13
0
 private void OnAdGetDoubleCallback()
 {
     num *= 2;
     GetReward();
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 14
0
 private void OnCloseClick()
 {
     GameManager.PlayButtonClickSound();
     GameManager.PlayIV("放弃购买道具" + (isProp1 ? "1" : "2"));
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 15
0
 private void OnAdGetCallback()
 {
     GameManager.AddCash(rewardNum);
     UIManager.FlyReward(Reward.Cash, rewardNum, transform.position);
     UIManager.ClosePopPanel(this);
 }
Exemplo n.º 16
0
 private void OnContinueAdCallback()
 {
     UIManager.ClosePopPanel(this);
     GameManager.ContinueGame();
 }