private void InitSystems() { //初始化LoninSystem m_LoginSystem.Init(); m_MainCitySystem.Init(); //进入登录场景并加载相应的UI m_LoginSystem.EnterLogin(); }
private void Init() { //服务模块初始化 //NetService net = GetComponent<NetService>(); //net.InitSvc(); ResourcesService res = GetComponent <ResourcesService>(); res.InitSvc(); AudioService audio = GetComponent <AudioService>(); audio.InitSvc(); TimerService timer = GetComponent <TimerService>(); timer.InitSvc(); //业务系统初始化 LoginSystem login = GetComponent <LoginSystem>(); login.InitSys(); //进入登录场景并加载相应UI login.EnterLogin(); }
void Init() { //按顺序初始化模块 //服务模块 NetService net = GetComponent <NetService>(); net.InitNetService(); ResService res = GetComponent <ResService>(); res.InitRes(); AudioService audio = GetComponent <AudioService>(); audio.InitService(); //业务系统初始化 LoginSystem login = GetComponent <LoginSystem>(); login.Init(); //进入登录场景并加载相应UI login.EnterLogin(); }
/// <summary> /// 初始化游戏 /// </summary> private void Init() { ///服务模块 初始化; ResSever resSever = GetComponent <ResSever>(); resSever.IniResSever(); NetSvc net = GetComponent <NetSvc>(); net.InitSvc(); AudioSer audioSer = GetComponent <AudioSer>(); audioSer.IniAudioSer(); ///业务系统 初始化; LoginSystem loginSystem = GetComponent <LoginSystem>(); loginSystem.IniSys(); ///载入登陆场景: loginSystem.EnterLogin(); }