/// <summary> /// 请求历史记录回调 /// </summary> /// <param name="callBackParam"></param> public override void openHistoryPanel2CallBack(LotteryHistoryListDto callBackParam) { if (callBackParam != null) { UITianTianLePanel uITianTianLePanel = MessageManager.GetInstance.GetUIDict <UITianTianLePanel>(); if (uITianTianLePanel != null) { PlayerCache.historyList = callBackParam.dtoList; uITianTianLePanel.OpenTrendResponse(callBackParam.dtoList); } } }
/// <summary> /// 下注通知 nowBetPlayerNumber:当前下注人数,nowLotteryAllGold:当前房间下注总金额 /// </summary> public override void betNotify(int nowBetPlayerNumber, long nowLotteryAllGold) { UITianTianLePanel uITianTianLePanel = MessageManager.GetInstance.GetUIDict <UITianTianLePanel>(); if (uITianTianLePanel != null) { if (uITianTianLePanel.gameObject.activeSelf) { uITianTianLePanel.UpdateRoomBetInfo(nowBetPlayerNumber, nowLotteryAllGold); } } }
/// <summary> /// 停止下注 /// </summary> public override void stopBet(int timer) { UITianTianLePanel uiTTLPanel = PlayerCache.TianTianLeObj.GetComponent <UITianTianLePanel>(); if (uiTTLPanel != null) { if (uiTTLPanel.gameObject.activeSelf) { AudioManager.Instance.PlaySound("ttl_end"); } uiTTLPanel.AHEnd(); } }
public override void bet2CallBack(LotteryBetDto callBackParam) { if (callBackParam != null) { PlayerCache.loginInfo.gold = callBackParam.reduceGold; UIHallManager uIHallManager = MessageManager.GetInstance.GetUIDict <UIHallManager>(); UITianTianLePanel uITianTianLePanel = MessageManager.GetInstance.GetUIDict <UITianTianLePanel>(); if (uITianTianLePanel != null) { uITianTianLePanel.UpdateBetNum(callBackParam.betPosition, (int)(callBackParam.betGold / 200000)); } PlayerCache.WealthUpdate(); } }
/// <summary> /// 开奖结果 /// </summary> /// <param name="dto"></param> public override void result(LotteryHistoryDto dto, int timer) { if (PlayerCache.historyList.Count >= 30) { PlayerCache.historyList.RemoveAt(0); } PlayerCache.historyList.Add(dto); UITianTianLePanel uiTTLPanel = PlayerCache.TianTianLeObj.GetComponent <UITianTianLePanel>(); if (uiTTLPanel != null) { uiTTLPanel.ShowCardsResult(dto); uiTTLPanel.UpdateTrend(PlayerCache.historyList); } }
/// <summary> /// 房间开始 /// </summary> public override void start(int timer) { //收到NUll 开局 开始计时 if (PlayerCache.TianTianLeObj != null) { UITianTianLePanel uiTTLPanel = PlayerCache.TianTianLeObj.GetComponent <UITianTianLePanel>(); if (uiTTLPanel != null) { if (uiTTLPanel.gameObject.activeSelf) { AudioManager.Instance.PlaySound("ttl_start"); } uiTTLPanel.HideCard(); uiTTLPanel.StartTimeDown(timer - 10); } } UIZJHPanel zjhPanel = MessageManager.GetInstance.GetUIDict <UIZJHPanel>(); if (zjhPanel != null) { if (zjhPanel.gameObject.activeSelf) { zjhPanel.ShowAHTime(timer - 10); } } UIZJHPanel cheatPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>(); if (cheatPanel != null) { if (cheatPanel.gameObject.activeSelf) { cheatPanel.ShowAHTime(timer - 10); } } }