Ejemplo n.º 1
0
    async void StartMineGame()
    {
        await GameFrameEntry.Initialize();

        GameFrameEntry.Start();
        await new WaitForEndOfFrame();
        await GameFramework.LoadHelper.LoadScene(GameConst.MineGameMainScene);
    }
Ejemplo n.º 2
0
        async void Start()
        {
            DontDestroyOnLoad(this);
            await GameFrameEntry.Initialize();

            GameFrameEntry.Start();
            await new WaitForEndOfFrame();
            await ConfigMgr.Instance.Initialize();

            //提前设置多语言环境
            GameFrameEntry.GetModule <LangModule>().SetLocalLangLibrary(LocalELangLibrary.ZH_CN, ELangType.ZH_CN);
            GamePath.Instance.FindMineGamePath();
            RegisterProcedure();
            SetLanguageData();
            SetEffectData();
            RegisterLogicCtr();


            GameFrameEntry.GetModule <MineGameLogicModule>().InitCtrl();
            GameFrameEntry.GetModule <ProcedureManager>().StartProcedure <Procedure.ProcedurePreLoad>();
        }