コード例 #1
0
        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
        }
コード例 #2
0
        public List <string> GetPathFiles(string path, string exEnd)
        {
#if UNITY_EDITOR
            if (FEngine.GetIsNoPack())
            {
                return(EditorScripts.GetExistFilesPath(path, exEnd));
            }
#endif
            List <string> tempString = new List <string>();
            tempString = FCommonFunction.GetFiles(SceneManager.WRPath + ResConfig.FDESASSETBUNDLE + "/" + path.ToLower(), tempString, exEnd.ToLower());
            return(tempString);
        }