Example #1
0
    public void Init()
    {
        cacheSvc = CacheSvc.Instance;
        cfgSvc   = CfgSvc.Instance;

        PECommon.Log("FubenSys Init Done.");
    }
Example #2
0
    /// <summary>
    /// 初始化
    /// </summary>
    public void Init()
    {
        cacheSvc = CacheSvc.Instance;
        cfgSvc   = CfgSvc.Instance;

        PETool.LogMsg("TaskSys Init Done.");
    }
Example #3
0
    public void Init()
    {
        cacheSvc = CacheSvc.Instance;
        cfgSvc   = CfgSvc.Instance;

        Common.Log("GuideSys Init Done.");
    }
Example #4
0
    public void Init()
    {
        cacheSvc = CacheSvc.Instance;
        cfgSvc   = CfgSvc.Instance;

        PECommon.Log("TaskSys Init Done");
    }
Example #5
0
    public void Init(int mapId)
    {
        mResSvc   = ResSvc.Instance;
        mAudioSvc = AudioSvc.Instance;
        mCfgSvc   = CfgSvc.Instance;

        mSkillMgr = gameObject.AddComponent <SkillMgr>();
        mSkillMgr.Init();
        mStateMgr = gameObject.AddComponent <StateMgr>();
        mStateMgr.Init();


        mAudioSvc.PlayBgAudio(Constant.Audio_BgHuangYe);

        CfgMap cfg = mCfgSvc.GetCfgMap(mapId);

        if (cfg == null)
        {
            Debug.LogError("╪сть╣ьм╪й╖╟э:  " + mapId);
            return;
        }

        mResSvc.AsyncLoadScene(cfg.sceneName, () =>
        {
            GameObject mapGo = GameObject.FindGameObjectWithTag("MapRoot");

            mMapMgr = mapGo.AddComponent <MapMgr>();
            mMapMgr.Init();
            InitScene(cfg);
        });
    }
Example #6
0
 protected virtual void CloseWnd()
 {
     mGameRoot = null;
     mResSvc   = null;
     mAudioSvc = null;
     mNetSvc   = null;
     mCfgSvc   = null;
 }
Example #7
0
 protected virtual void InitWnd(object[] args = null)
 {
     mGameRoot = GameRoot.Instance;
     mCfgSvc   = CfgSvc.Instance;
     mResSvc   = ResSvc.Instance;
     mAudioSvc = AudioSvc.Instance;
     mNetSvc   = NetSvc.Instance;
 }
Example #8
0
    public virtual void Init()
    {
        Instance = this as T;

        mGameRoot = GameRoot.Instance;
        mCfgSvc   = CfgSvc.Instance;
        mResSvc   = ResSvc.Instance;
        mAudioSvc = AudioSvc.Instance;
        mNetSvc   = NetSvc.Instance;
    }
Example #9
0
    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();
    }
Example #10
0
 public void Init()
 {
     cacheSvc = CacheSvc.Instance;
     cfgSvc   = CfgSvc.Instance;
     PECommon.Log("StrongSys Init Done!");
 }
Example #11
0
 public void Init()
 {
     cacheSrv = CacheServer.Instance;
     cfgSvc   = CfgSvc.Instance;
     PECommon.Log("GuideSystem Init Done");
 }