public override void InitSys() { base.InitSys(); Instance = this; PECommon.Log("Init FubenSys..."); }
private void Init() { //服务模块初始化 ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); NetSvc net = GetComponent <NetSvc>(); net.InitSvc(); AudioSvc audio = GetComponent <AudioSvc>(); audio.InitSvc(); TimerSvc timer = GetComponent <TimerSvc>(); timer.InitSvc(); //业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); MainCitySys mainCitySys = GetComponent <MainCitySys>(); mainCitySys.InitSys(); FubenSys fubenSys = GetComponent <FubenSys>(); fubenSys.InitSys(); BattleSys battleSys = GetComponent <BattleSys>(); battleSys.InitSys(); dynamicWind.SetWindowState(); //进入登入场景并加载UI login.EnterLogin(); }
private void Init() { //服务模块初始化 NetSvc net = GetComponent <NetSvc>(); net.InitSvc(); ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); AudioSvc audio = GetComponent <AudioSvc>(); audio.InitSvc(); TimerSvc timer = GetComponent <TimerSvc>(); timer.InitSvc(); //业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); MainCitySys maincity = GetComponent <MainCitySys>(); maincity.InitSys(); FubenSys fuben = GetComponent <FubenSys>(); fuben.InitSys(); BattleSys battle = GetComponent <BattleSys>(); battle.InitSys(); //进入登录场景并加载相应UI login.EnterLogin(); }
public override void InitSys() { base.InitSys(); Instance = this; Debug.Log(GetType() + "/InitSys()/Init FubenSys..."); }
/// <summary> /// 初始化数据 /// </summary> private void Init() { // 服务模块初始化 NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSvc(); ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSvc(); TimerSvc timerSvc = GetComponent <TimerSvc>(); timerSvc.InitSvc(); // 业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); MainCitySys mainCity = GetComponent <MainCitySys>(); mainCity.InitSys(); FubenSys fuben = GetComponent <FubenSys>(); fuben.InitSys(); BattleSys battle = GetComponent <BattleSys>(); battle.InitSys(); // 进入登陆场景,并加载相应UI login.EnterLogin(); // 显示动态窗口,并显示在最顶层 dynamicWnd.SetWndState(); dynamicWnd.transform.SetAsLastSibling(); }
private void Init() { //服务器模块初始化 NetSvc net = GetComponent <NetSvc>(); net.InitSvc(); ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); AudioSvc audio = GetComponent <AudioSvc>(); audio.InitSvc(); TimerSvc timerSvc = GetComponent <TimerSvc>(); timerSvc.InitSvc(); //业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); MainCitySys mainCitySys = GetComponent <MainCitySys>(); mainCitySys.InitSys(); FubenSys fubenSys = GetComponent <FubenSys>(); fubenSys.InitSys(); BattleSys battleSys = GetComponent <BattleSys>(); battleSys.InitSys(); dynamicWnd.SetWndState(true); //进入登录场景并加载相应的UI login.EnterLogin(); TimerSvc.Instance.AddTimeTask((int tid) => { PECommon.Log("TEST Timer"); }, 1000); }
/// <summary> /// 初始化服务和系统资源 /// </summary> private void Init() { resSvc = GetComponent <ResSvc>(); audioSvc = GetComponent <AudioSvc>(); netSvc = GetComponent <NetSvc>(); timerSvc = GetComponent <TimerSvc>(); loginSys = GetComponent <LoginSys>(); mainCitySys = GetComponent <MainCitySys>(); fubenSys = GetComponent <FubenSys>(); batleSys = GetComponent <BatleSys>(); resSvc.InitResSvc(); netSvc.InitNetSvc(); audioSvc.InitAudioSvc(); timerSvc.InitTimerSvc(); loginSys.InitSystem(); mainCitySys.InitSystem(); fubenSys.InitSystem(); batleSys.InitSystem(); SetPanelActive(); loginSys.EnterGame(); }
public override void InitSys() { base.InitSys(); instance = this; }