Beispiel #1
0
 private void OnClickClose()
 {
     if (PECommon.InSecene(SceneId.SceneMainCity))
     {
         ChangeState <ProcedureMainCity>(m_ProcedureOwner);
     }
     else
     {
         m_ProcedureOwner.SetData <VarInt>(Constant.ProcedureData.NextSceneId, (int)SceneId.SceneMainCity);
         ChangeState <ProcedureChangeScene>(m_ProcedureOwner);
     }
 }
Beispiel #2
0
    private void RspFBFight(object sender, GameEventArgs e)
    {
        OnReceiveSCPacketBaseEventArgs ne = e as OnReceiveSCPacketBaseEventArgs;

        if (ne.msgID != CMD.RspFBFight)
        {
            return;
        }
        RspFBFight rspFBFight = (RspFBFight)ne.scPacketBase;

        PECommon.SetPlayerDataByFBStart(rspFBFight);
        GameEntry.UI.CloseUIForm(UIFormId.FubenForm);
        if (PECommon.InSecene(SceneId.SceneMainCity))
        {
            m_ProcedureOwner.SetData <VarInt>(Constant.ProcedureData.NextSceneId, (int)SceneId.SceneOrge);
            m_ProcedureOwner.SetData <VarInt>(Constant.ProcedureData.FubenId, rspFBFight.Fbid);
            ChangeState <ProcedureChangeScene>(m_ProcedureOwner);
        }
        else
        {
            ChangeState <ProcedureBattle>(m_ProcedureOwner);
        }
    }