protected override void Init() { m_config = ResBinReader.Read <LevelConfig_ARRAY>("LevelConfig"); SortConfig(); m_themeConfig = ResBinReader.Read <ThemeConfig_ARRAY>("ThemeConfig"); m_value = ResBinReader.Read <ValueConfig_ARRAY>("ValueConfig"); m_data = LevelLoader.Load(); if (m_data == null) { Debuger.Log(Tag, string.Empty, "m_data == null"); } CurPlayMode = GamePlayModule.Normal; }
public void OnSceneLoaded() { try { var module = new GamePlayModule(Camera.main); m_gameplayModuleName = module.Name; App.RegisterModule(module); m_inputReceiver = GetComponent <InputReceiver>(); m_playerCharacter.SetActive(true); var sceneService = App.Services.Get <ISceneService>(); sceneService.Load(AppConfig.GamePlayUISceneName, manager => { m_inputReceiver.LockInput(false); Debug.Log("Gameplay UI loaded"); }); } catch (Exception e) { Debug.Log("Application or some of it's parts was not inited!"); } }