Beispiel #1
0
    //讨伐结算
    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);
    }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 void ReceiveCrusadeResultHandle(object obj)
 {
     m_isTiming      = false;
     m_CrusadeResult = (SMSGECTYPE_CRUSADERESULT_SC)obj;
 }