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(); }
public override void InitSys() { base.InitSys(); Debug.Log(GetType() + "/InitSys()/Init LoginSys..."); Instance = this; }
public void Init() { //服务模块初始化 ResSVC resSVC = this.GetComponent <ResSVC>(); resSVC.Init(); //音乐管理器 AudioSVC audioSVC = this.GetComponent <AudioSVC>(); audioSVC.Init(); //业务系统初始化 LoginSys loginSys = this.GetComponent <LoginSys>(); loginSys.InitSVC(); //进行登录场景 loginSys.EnterLogin(); AudioSVC.Instance.PlayBGAudio(Constant.BGMAINCITY, true); AddTips("aaaaa"); AddTips("aaaaabbb"); AddTips("aaaaccccca"); }
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(); //UIMgr.OpenPanel(QAssetBundle.Loadingwnd_prefab.LOADINGWND); // dynamicWnd.SetWndState(); //进入登录场景并加载相应UI //login.EnterLogin(); }
private void Init() { // 初始化服务模块 NetSev.Instance.InitSev(); ResSev.Instance.InitSev(); AudioSev.Instance.InitSev(); TimerSev.Instance.InitSev(); TimerSev.Instance.StartTimer(); // 初始化业务系统 XLuaSys.InitSingleton().InitSys(); CoroutineSys cor = CoroutineSys.InitSingleton(); cor.InitSys(); LoginSys login = LoginSys.InitSingleton(); login.InitSys(); MainCitySys mainCity = MainCitySys.InitSingleton(); mainCity.InitSys(); MissionSys missionSys = MissionSys.InitSingleton(); missionSys.InitSys(); BattleSys battleSys = BattleSys.InitSingleton(); battleSys.InitSys(); dynamicWindow.SetWindowState(true); // 进入登录场景并加载相应UI login.EnterLogin(); //AddTips("Tips1"); //AddTips("Tips2"); }
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(); }
/// <summary> /// 初始化登陆系统 /// </summary> public override void InitSys() { base.InitSys(); Instance = this; Debug.Log($"LoginSys -> InitSys()"); }
/// <summary> /// 初始化各个业务系统和服务模块,应当先初始化服务后初始化业务 /// </summary> 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(); DungeonSys dungeonSys = GetComponent <DungeonSys>(); dungeonSys.InitSys(); BattleSys battleSys = GetComponent <BattleSys>(); battleSys.InitSys(); // 显示动态窗口 dynamicWnd.SetWndState(); // 进入登录场景并加载相应 UI login.EnterLogin(); }
public override void InitSys() { base.InitSys(); Instance = this; Common.Log("Init LoginSys..."); }
public SubSysMgr() { subSysList = new Dictionary <int, SubSysBase>(); /*------------------注册子系统---------------------*/ SubSysBase subSys = new LoginSys(); subSysList.Add((int)subSys.subSysType, subSys); subSys.EnterSys(); GameEventMgr.GetInstance().RegisterHandler(this, EventType.ChangeSys, EventType.ServerMsg, EventType.SystemMsg); }
private void Init() { //服务模块初始化 ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); //业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); //进入登陆场景并加载对应的UI login.EnterLogin(); }
private void Init() { //服务模块初始化 ResSvc resSvc = GetComponent <ResSvc>(); resSvc.Init(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.Init(); //业务系统初始化 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.Init(); //进入登录场景并加载UI loginSys.EnterLogin(); }
private void Init() { #region 所有UI界面的获取, 本项目暂时没有做资源加载的框架 mUIRootTr = transform.Find("UIRoot"); mLoadingWnd = transform.Find("UIRoot/LoadingWnd").GetComponent <LoadingWnd>(); mLoginWnd = transform.Find("UIRoot/LoginWnd").GetComponent <LoginWnd>(); mDynamicTipsWnd = transform.Find("UIRoot/DynamicTips").GetComponent <DynamicTipsWnd>(); mCreateWnd = transform.Find("UIRoot/CreateWnd").GetComponent <CreateWnd>(); mMainWnd = transform.Find("UIRoot/MainWnd").GetComponent <MainWnd>(); mActorInfoWnd = transform.Find("UIRoot/ActorInfoWnd").GetComponent <ActorInfoWnd>(); mGuideWnd = transform.Find("UIRoot/GuideWnd").GetComponent <GuideWnd>(); mStrongWnd = transform.Find("UIRoot/StrongWnd").GetComponent <StrongWnd>(); mChatWnd = transform.Find("UIRoot/ChatWnd").GetComponent <ChatWnd>(); mCommonBuyWnd = transform.Find("UIRoot/CommonBuyWnd").GetComponent <CommonBuyWnd>(); mFuBenWnd = transform.Find("UIRoot/FuBenWnd").GetComponent <FuBenWnd>(); mPlayerCtrlWnd = transform.Find("UIRoot/PlayerCtrlWnd").GetComponent <PlayerCtrlWnd>(); #endregion #region 务层初始化 mCfgSvc = GetComponent <CfgSvc>(); mCfgSvc.Init(); mResSvc = GetComponent <ResSvc>(); mResSvc.Init(); mAudioSvc = GetComponent <AudioSvc>(); mAudioSvc.Init(); mNetSvc = GetComponent <NetSvc>(); mNetSvc.Init(); mTimerSvc = GetComponent <TimerSvc>(); mTimerSvc.Init(); #endregion #region 业务层初始化 mLoginSys = GetComponent <LoginSys>(); mLoginSys.Init(); mMainCitySys = GetComponent <MainCitySys>(); mMainCitySys.Init(); mFuBenSys = GetComponent <FuBenSys>(); mFuBenSys.Init(); mBattleSys = GetComponent <BattleSys>(); mBattleSys.Init(); #endregion InitUIRoot(); mLoginSys.EnterLogin(); }
private void Init() { //服务模块初始化 ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitSvc(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSvc(); //业务系统 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); //进入登陆场景 loginSys.EnterLogin(); }
/// <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(); }
/// <summary> /// 初始化 /// </summary> private void Init() { //服务模块初始化 NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSvc(); TimerSvc timerSvc = GetComponent <TimerSvc>(); timerSvc.InitSvc(); ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitResSvc(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitAudioSvc(); //业务系统 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); MainCitySys mainCitySys = GetComponent <MainCitySys>(); mainCitySys.InitSys(); CopyerSys copyerSys = GetComponent <CopyerSys>(); copyerSys.InitSys(); BattleSys battleSys = GetComponent <BattleSys>(); battleSys.InitSys(); //只打开dynamicWnd _dynamicWnd.SetWndState(true); //进入登陆场景并加载相应UI loginSys.EnterLogin(); }
private void Init() { //服务模块初始化 ResSvc res = GetComponent <ResSvc>(); res.InitSvc(); AudioSvc audio = GetComponent <AudioSvc>(); audio.InitSvc(); //业务系统初始化 LoginSys login = GetComponent <LoginSys>(); login.InitSys(); //进入登录场景并加载相应UI login.EnterLogin(); }
void Init() { NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSvc(); ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitSvc(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSvc(); LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); MainCitySys citySys = GetComponent <MainCitySys>(); citySys.InitSys(); loginSys.EnterLogin(); }
private void Init() { //服务模块初始化 ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitSys(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSys(); NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSys(); //业务模块初始化 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); MainSys mainSys = GetComponent <MainSys>(); mainSys.InitSys(); }
private void Init() { //服务模块初始化 NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSvc(); ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitSvs(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSvc(); //业务模块初始化 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); MainCitySys mainCitySys = GetComponent <MainCitySys>(); mainCitySys.InitSys(); //进入登录场景 并加载相应UI loginSys.EnterLogin(); }
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); }
private void Init() { //服务模块初始化 ResSvc resSvc = GetComponent <ResSvc>(); resSvc.InitSvc(); AudioSvc audioSvc = GetComponent <AudioSvc>(); audioSvc.InitSvc(); NetSvc netSvc = GetComponent <NetSvc>(); netSvc.InitSvc(); TimerSvc timeSvc = GetComponent <TimerSvc>(); timeSvc.InitSvc(); //业务系统初始化 LoginSys loginSys = GetComponent <LoginSys>(); loginSys.InitSys(); //主城系统初始化 MainCitySys mainCitySys = GetComponent <MainCitySys>(); mainCitySys.InitSys(); //副本系统初始化 FuBenSys fubenSys = GetComponent <FuBenSys>(); fubenSys.InitSys(); BattleSys battleSys = GetComponent <BattleSys>(); battleSys.InitSys(); //进入登录界面并 加载UI loginSys.EnterLogin(); }
/// <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; PECommon.Log("初始化登陆系统完成"); }
public override void InitSys() { base.InitSys(); Instance = this; }
public LoginWind loginWind; //登入场景UI public override void InitSys() { base.InitSys(); instance = this; Debug.Log("Init LoginSys..."); }
/// <summary> /// 业务模块初始化 /// </summary> public override void InitSVC() { base.InitSVC(); Instance = this; Debug.Log("业务模块初始化"); }