Beispiel #1
0
        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);
        }
Beispiel #2
0
        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>();
                    });
                });
            });
        }
Beispiel #3
0
 void OnSvrData()
 {
     MsgSys.Send(SysEvt.get_svr_list_suc);
 }