public void Show(SMSGEctypeSettleAccounts sMSGEctypeSettleAccounts, BattleSettlementPanel_V3 myParent) { this.MyParent = myParent; this.ShowData = sMSGEctypeSettleAccounts; TweenShowBackground(null); TweenMoveSingleRewariPanel(null); }
void Show(INotifyArgs inotifyArgs) { IsGameSettlement = true; // Debug.LogWarning("开始结算:" + Time.time); UIEventManager.Instance.TriggerUIEvent(UIEventType.ReceiveSettleAccount, inotifyArgs); this.sMSGEctypeSettleAccounts = (SMSGEctypeSettleAccounts)inotifyArgs; ShowWinEffect(); }
///// <summary> ///// 收到难度选择页面消息 ///// </summary> ///// <param name="dataBuffer"></param> ///// <param name="socketID"></param> //CommandCallbackType EctypeLevelDataHandle(byte[] dataBuffer, int socketID) //{ // SMSGOpenEctypeLevelDatas_SC sMSGOpenEctypeLevelDatas_SC = SMSGOpenEctypeLevelDatas_SC.ParsePackage(dataBuffer); // RaiseEvent(EventTypeEnum.EctypeConfig.ToString(), sMSGOpenEctypeLevelDatas_SC); // return CommandCallbackType.Continue; //} ///// <summary> ///// 收到世界地图的消息 ///// </summary> ///// <param name="dataBuffer"></param> ///// <param name="socketID"></param> //CommandCallbackType WorldMapSelectHandle(byte[] dataBuffer, int socketID) //{ // var ectypeConfig = SMSGEctypeWorldMapSelect_SC.ParsePackage(dataBuffer); // //已经过服务端验证,此处不做队长验证 // int[] desMapID = EctypeConfigManager.Instance.PortalConfigList[ectypeConfig.dwSid]._desMapID; // //Created By WYN // WorldMapController.Instance.InitIds(desMapID); // MainUIController.Instance.OpenMainUI(UIType.WorldMap); // return CommandCallbackType.Continue; //} //public CommandCallbackType EctypeRequestError(byte[] dataBuffer, int socketID) //{ // //TraceUtil.Log("请求副本失败..."); // return CommandCallbackType.Continue; //} /// <summary> /// 副本结算 /// </summary> CommandCallbackType EctypeSettleAccountHandle(byte[] dataBuffer, int socketID) { var settleAccount = SMSGEctypeSettleAccounts.ParsePackage(dataBuffer); //Debu.log("连击" + settleAccount.dwHighestCombo); Debug.LogWarning("收到副本结算消息:"); //NewbieGuideManager.Instance.IsCompleteEctype = true; RaiseEvent(EventTypeEnum.EctypeSettleAccount.ToString(), settleAccount); return(CommandCallbackType.Continue); }
public void Show(SMSGEctypeSettleAccounts sMSGEctypeSettleAccounts) { SoundManager.Instance.StopBGM(0f); SoundManager.Instance.PlaySoundEffect("Sound_UIEff_AppraisalStar"); this.sMSGEctypeSettleAccounts = sMSGEctypeSettleAccounts; DoForTime.DoFunForTime(0.3f, TweenShowWinElementTitle01, null); DoForTime.DoFunForTime(0.3f, TweenShowTitle01, null); DoForTime.DoFunForTime(2.5f, ShowGrad, null); DoForTime.DoFunForTime(2, PlayGradSound, null); DoForTime.DoFunForTime(1, ShowScorePanel, null); float delayTime = EctypeData.BattleVictoryLotteryTime - 5 - 3 - EctypeData.ResultAppearDelay; //5秒慢镜+3秒胜利动作+结算延迟出现 StartCoroutine("ShowFreeTreasureRewardDelay", delayTime); }
public void Show(SMSGEctypeSettleAccounts sMSGEctypeSettleAccounts, BattleSettlementPanel_V3 myParent) { SMSGEctypeInitialize_SC sMSGEctypeInitialize_SC = (SMSGEctypeInitialize_SC)GameDataManager.Instance.PeekData(DataType.InitializeEctype); MyEctypeData = EctypeConfigManager.Instance.EctypeContainerConfigList[sMSGEctypeInitialize_SC.dwEctypeContainerId]; UpPanel.alpha = 0; DownPanel.alpha = 0; this.sMSGEctypeSettleAccounts = sMSGEctypeSettleAccounts; this.MyParent = myParent; var playerData = PlayerManager.Instance.FindHeroDataModel(); int vocation = playerData.PlayerValues.PlayerCommonValue.PLAYER_FIELD_VISIBLE_VOCATION; //RoleIcon.ChangeSprite(vocation); ProfesionIcon.ChangeSprite(vocation); NameLabel.SetText(playerData.Name); TweenMovePanel(); UpdateHeroIcon(); }