//讨伐结算 CommandCallbackType ReceiveEctypeCrusadeResultHandle(byte[] dataBuffer, int socketID) { SMSGECTYPE_CRUSADERESULT_SC sMSGECTYPE_CRUSADERESULT_SC = SMSGECTYPE_CRUSADERESULT_SC.ParsePackage(dataBuffer); TraceUtil.Log(SystemModel.Lee, "讨伐结算"); UIEventManager.Instance.TriggerUIEvent(UIEventType.CrusadeSettlement, sMSGECTYPE_CRUSADERESULT_SC); return(CommandCallbackType.Continue); }
public void Show(List <IEntityDataStruct> dataStructList, SMSGECTYPE_CRUSADERESULT_SC result) { this.m_result = result; this.m_dataStructList = dataStructList; int[] bonusTime = EctypeManager.Instance.GetCurrentEctypeData().Coop_BonusTime; int grade = bonusTime.Length; for (int i = 0; i < bonusTime.Length; i++) { if (m_result.dwTime < bonusTime[i]) { grade = i; break; } } Swith_RatingIcon.ChangeSprite(grade + 1); SoundManager.Instance.PlaySoundEffect("Sound_UIEff_CoopJudgeIntro"); TweenAlpha.Begin(Panel_Background.gameObject, 0.1f, 0, 1f, ShowBackgroundOverHandle); }
void ReceiveCrusadeResultHandle(object obj) { m_isTiming = false; m_CrusadeResult = (SMSGECTYPE_CRUSADERESULT_SC)obj; }