Beispiel #1
0
    /// <summary>
    /// 支付成功
    /// </summary>
    private void BtnSuccessOnClcik()
    {
        UIHallManager uIHall = MessageManager.GetInstance.GetUIDict <UIHallManager>();

        if (uIHall != null)
        {
            uIHall.UpdateUI();
        }
        UIZJHPanel uIZJHPanel = MessageManager.GetInstance.GetUIDict <UIZJHPanel>();

        if (uIZJHPanel == null)
        {
            uIZJHPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>();
        }
        if (uIZJHPanel != null)
        {
            uIZJHPanel.UpdateSelfUIInfo();
        }

        //if (liuliu.UIWanRenChang != null)
        //{
        //    liuliu.UIWanRenChang.MiddleWeath();
        //}
        //if (Diceliuliu.UIDicePlane != null)
        //{
        //    Diceliuliu.UIDicePlane.MiddleWeath();
        //}
        AliPay.Instance.payStatus = false;
        AliPay.Instance.ClosePay();
        Destroy(transform.gameObject);
    }
Beispiel #2
0
    /// <summary>
    /// 更新财富显示
    /// </summary>
    public static void WealthUpdate()
    {
        UIHallManager uIHallManager = MessageManager.GetInstance.GetUIDict <UIHallManager>();

        if (uIHallManager != null)
        {
            uIHallManager.UpdateUI();
        }
        //UIVipPanel uiVipMsg = MessageManager.GetInstance.GetUIDict<UIVipPanel>();
        //如果是在vip特权这个界面,就立即更新vip经验值
        //if (uiVipMsg != null)
        //{
        //    if (uiVipMsg.gameObject.activeSelf)
        //    {
        //        uiVipMsg.UpdateUI();
        //    }
        //}
        UIZJHPanel uIZJHPanel = MessageManager.GetInstance.GetUIDict <UIZJHPanel>();

        if (uIZJHPanel == null)
        {
            uIZJHPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>();
        }
        if (uIZJHPanel != null)
        {
            uIZJHPanel.UpdateSelfUIInfo();
        }
        UIWanRenChang uIWanRenChang = MessageManager.GetInstance.GetUIDict <UIWanRenChang>();

        if (uIWanRenChang != null)
        {
            uIWanRenChang.MiddleWeath();
        }
        UIDicePlane uIDicePlane = MessageManager.GetInstance.GetUIDict <UIDicePlane>();

        if (uIDicePlane != null)
        {
            uIDicePlane.MiddleWeath();
        }

        UIShopPanel shopuiMessage = MessageManager.GetInstance.GetUIDict <UIShopPanel>();

        if (shopuiMessage != null)
        {
            if (shopuiMessage.gameObject.activeSelf)
            {
                shopuiMessage.UpdateUIData();
            }
        }
    }
Beispiel #3
0
    public void UpdateUI(MoneyTreeOpenDto moneyTreeOpenDto)
    {
        if (moneyTreeOpenDto.lv == 0)
        {
            level.text     = "0";
            goldcount.text = "0";
            slider.value   = 0f;
            timer.text     = "未获得摇钱树";
            btn_Harvest.gameObject.SetActive(false);
        }
        else
        {
            level.text                 = NumberConvert.NunberToChar(moneyTreeOpenDto.lv);
            timer.text                 = moneyTreeOpenDto.timer.ToString() + "小时/12小时";
            slider.value               = moneyTreeOpenDto.timer * 1.0f / 12;
            goldcount.text             = moneyTreeOpenDto.goldNum.ToString();
            PlayerCache.loginInfo.gold = moneyTreeOpenDto.holdGold;
            btn_Harvest.gameObject.SetActive(true);
        }
        totalGold.text = PlayerCache.loginInfo.gold.ToString();

        UIHallManager uIHallManager = MessageManager.GetInstance.GetUIDict <UIHallManager>();

        if (uIHallManager != null)
        {
            if (uIHallManager.gameObject.activeSelf)
            {
                uIHallManager.UpdateUI();
            }
        }


        if (PlayerCache.loginInfo != null)
        {
            totalGold.text = PlayerCache.loginInfo.gold.ToString();
        }
    }
Beispiel #4
0
        /// <summary>
        /// 领取推广奖励
        /// </summary>
        /// <param name="callBackParam"></param>
        public override void receiveAward2CallBack(GoldBaseDto callBackParam)
        {
            PlayerCache.loginInfo.gold = callBackParam.holdGold;

            UIHallManager uIHallManager = MessageManager.GetInstance.GetUIDict <UIHallManager>();

            if (uIHallManager != null)
            {
                if (uIHallManager.gameObject.activeSelf)
                {
                    uIHallManager.UpdateUI();
                }
            }
            UIStartEarnGoldPanel uIStartEarnGoldPanel = MessageManager.GetInstance.GetUIDict <UIStartEarnGoldPanel>();

            if (uIStartEarnGoldPanel != null)
            {
                if (uIStartEarnGoldPanel.gameObject.activeSelf)
                {
                    uIStartEarnGoldPanel.GetEarningsResponse();
                }
            }
            XUIMidMsg.QuickMsg("领取" + callBackParam.exchangeGold + "金币成功!");
        }
Beispiel #5
0
        /// <summary>
        /// 填写邀请码 领取回调
        /// </summary>
        /// <param name="callBackParam"></param>
        public override void invite2CallBack(GeneralizeAwardDto callBackParam)
        {
            PlayerCache.loginInfo.gold = callBackParam.selfHoldGold;

            // PlayerCache.loginInfo.HasGeneralizeId = true;
            UIHallManager uIHallManager = MessageManager.GetInstance.GetUIDict <UIHallManager>();

            if (uIHallManager != null)
            {
                if (uIHallManager.gameObject.activeSelf)
                {
                    uIHallManager.UpdateUI();
                }
            }
            UIInputInviteCodePanel uIInputInviteCodePanel = MessageManager.GetInstance.GetUIDict <UIInputInviteCodePanel>();

            if (uIInputInviteCodePanel != null)
            {
                if (uIInputInviteCodePanel.gameObject.activeSelf)
                {
                    uIInputInviteCodePanel.GetAwardSuccessResponse();
                }
            }
        }