コード例 #1
0
    CommandCallbackType PVPSettleAccountHandle(byte[] dataBuffer, int socketID)
    {
        SMSGEctypePvpSettleAccounts_SC sMSGEctypePvpSettleAccounts_SC = SMSGEctypePvpSettleAccounts_SC.ParsePackage(dataBuffer);

        //TraceUtil.Log("=======结算 获得威望: " + sMSGEctypePvpSettleAccounts_SC.dwPrestigeReward);
        RaiseEvent(EventTypeEnum.PVPSettleAccount.ToString(), sMSGEctypePvpSettleAccounts_SC);
        return(CommandCallbackType.Continue);
    }
コード例 #2
0
    void PVPSettleAccountHandle(INotifyArgs arg)
    {
        SMSGEctypePvpSettleAccounts_SC settleData = (SMSGEctypePvpSettleAccounts_SC)arg;

        m_pvpSettleMsg = settleData;

        PVPBattleManager.Instance.SetPVPState(PVPBattleManager.PVPBattleState.settle);

        m_isWin = settleData.dwWinerActorID == PlayerManager.Instance.FindHeroDataModel().ActorID;

        m_backTownTime = time_backTown;

        Label_BattleTime.gameObject.SetActive(false);
        CancelInvoke("BattleTiming");

        StartCoroutine("SettleAnimation");
        //PVPSettle.SetActive(true);
        //Label_BackTownTime.text = string.Format(LanguageTextManager.GetString("IDS_H1_356"), m_backTownTime.ToString());
        //this.AddCamera();
        //InvokeRepeating("BackTownTiming", 1f, 1f);
    }