Пример #1
0
        /// <summary>
        /// 结算通知   bonus:中奖金额
        /// </summary>
        /// <param name="bonus"></param>
        public override void settleAccount(long bonus, int timer)
        {
            GameObject   go           = GameTools.Instance.GetObject("Prefabs/TianTianLe/TTLAwardPanel");
            GameObject   obj          = UnityEngine.GameObject.Instantiate(go);
            AHResultMono aHResultMono = obj.AddComponent <AHResultMono>();

            obj.transform.SetParent(PlayerCache.GetCanvas());
            aHResultMono.SelfWin(bonus);
        }
Пример #2
0
        /// <summary>
        ///  有人請求添加为好友 uid:請求人的uid,userName:請求人的用户名
        /// </summary>
        /// <param name="uid"></param>
        /// <param name="userName"></param>
        public override void hasFriendRequest(long uid, string userName)
        {
            GameObject go  = GameTools.Instance.GetObject("Prefabs/Friend/AddFriendTipsPanel");
            GameObject obj = GameObject.Instantiate(go);

            obj.transform.SetParent(PlayerCache.GetCanvas());
            obj.transform.localScale = Vector3.one;
            AddFriendTipPanel tips = obj.AddComponent <AddFriendTipPanel>();

            tips.SetContent(uid, userName);
        }
Пример #3
0
    //点击头像查看玩家信息
    private void BtnGetFriendInfoOnClick(long otherPlayerUid)
    {
        if (zjhPanel.IsLimitTTL)
        {
            return;
        }

        if (otherPlayerUid == PlayerCache.loginInfo.uid)
        {
            //打开自己的

            GameObject go = UIManager.Instance.OpenUI <UIHeadPanel>(PathStr.UI_Head_Path, zjhPanel.transform);
            go.name = "HeadPanel";
            // PlayerCache.hallPlayerInfoOperation.playerInfo(PlayerCache.loginInfo.uid);

            return;
        }
        if (player != null)
        {
            PlayerCache.CurrentOtherPlayerUID = player.uid;
            UIManager.Instance.OpenUI <UIGameOtherPlayerPanel>("Prefabs/Game/GameOtherPlayerInfoPanel", PlayerCache.GetCanvas());
        }
    }
Пример #4
0
 /// <summary>
 /// 打开返利轮盘
 /// </summary>
 private void BtnRebateRouletteOnClick()
 {
     UIManager.Instance.OpenUI <UIRebatePanel>("Prefabs/RebateRoulette/RebateRoulettePanel", PlayerCache.GetCanvas());
     AudioManager.Instance.PlaySound("button");
 }
Пример #5
0
 /// <summary>
 /// 打开每日签到
 /// </summary>
 private void BtnOpenEverySignOnClick()
 {
     UIManager.Instance.OpenUI <UISigninPanel>("Prefabs/Sign/SignPanel", PlayerCache.GetCanvas());
     AudioManager.Instance.PlaySound("button");
 }
Пример #6
0
        /// <summary>
        /// 打开推广列表回调
        /// </summary>
        /// <param name="callBackParam"></param>
        public override void openGeneralizeList2CallBack(GeneralizeListDto callBackParam)
        {
            PlayerCache.generalize = callBackParam;

            long currentAward = 0;

            for (int i = 0; i < PlayerCache.generalize.generalizeDtoList.Count; i++)
            {
                currentAward += PlayerCache.generalize.generalizeDtoList[i].award;
            }
            PlayerCache.generalizeCurrentAward = currentAward;
            UIManager.Instance.OpenUI <UIGeneralizePanel>(PathStr.UI_GeneralizePanel_Path, PlayerCache.GetCanvas());
        }