void OnAddRoleRes(int id, ProtoPacket proto) { //yeah , let's go to the game world DCLog.Log("yeah , let's go to the game world!"); Close(); MsgSys.Send(PlayerEvt.close_select_role_ui); var sceneId = ParamsCfgMgr.Instance.GetInt((int)PParamsConfig.BeginnerScene); LoadScene(sceneId); }
void RequestRoleData(ServerConfig svrCfg) { SysBoxP.NetworkServiceP.Connect(svrCfg, () => { SysBoxP.UnityMsgDis.PostAction(() => { MsgSys.Send(SysEvt.connect_gsvr_suc); PlayerNet.Instance.ReqRoleList(PlayerDataMgr.Instance.UserToken, (id, protoPkt) => { Close(); UiSys.ShowUi <SelectRoleUI>(); }); }); }); }
void OnSvrData() { MsgSys.Send(SysEvt.get_svr_list_suc); }