void Awake() { Application.runInBackground = true; //Application.targetFrameRate = 60; #if UNITY_EDITOR if (DebugType == FDebugType.D_HideLog) { DebugType = FDebugType.D_NONE; } #else if (serverPlat == ServerPlat.SP_Online) { DebugType = FDebugType.D_NONE; } #endif instance = this; FEngineManager.SetEngine(this); // LoadSceneManager.instance.SetScene(GameProgress.GP_Map1, "PveMap"); DontDestroyOnLoad(this.gameObject); ConfigManager.instance.Init(); InitManager(); InitScene(); #if UNITY_EDITOR CheckProject(); #endif }