Exemple #1
0
        private static void SetUserSetting()
        {
            PersistenceData.SavePrefsData("ASSET_PACKAGER_WHOLE_MODULE", wholeModule);

            RunningTimeData.SetRunningData(CommonKey.VERSION_LOCAL, version.ToString());
            RunningTimeData.Record();
        }
        private void OnGUI()
        {
            EditorGUILayout.LabelField("设置Lua文件加密Key:(至少16位,不足自动填充0)");
            string _keyLua = EditorGUILayout.TextField(PersistenceData.GetPrefsData("CRYPT_KEY", "abcdefghijklmnop12345678"));

            while (_keyLua.Length < 16)
            {
                _keyLua += "0";
            }
            PersistenceData.SavePrefsData("CRYPT_KEY", _keyLua);
        }
Exemple #3
0
        private void Functions()
        {
            EditorGUILayout.BeginHorizontal();
            {
                if (GUILayout.Button("打包资源", GUILayout.Width(120)))
                {
                    changeds = null;
                    buidle++;
                    PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
                    PackAssetBundles();
                }
            }
            EditorGUILayout.EndHorizontal();

            GUILayout.Space(20);
        }
Exemple #4
0
        private void ComponentOnBuildBundleIdentify()
        {
            CopyChannelFiles();
            ChannelData.SetByBundleid(bundleidf);
            if (useChannle > 0)
            {
                ChannelData.SetChannelByIndex(useChannle);
            }
            AssetDatabase.Refresh();

            if (!isDebug)
            {
                buidle++;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }
        }
Exemple #5
0
        private void ComponentDataGetBundleIdentify()
        {
            //版本
            string _v = RunningTimeData.GetRunningData(CommonKey.VERSION_LOCAL, "0.0.0.0");

            version = new Version(_v);
            string _bu = DateTime.Now.ToString("MMdd");

            buidle = int.Parse(_bu);
            if (buidle > version.Build)
            {
                buidle = 0;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }

            buidle = PersistenceData.GetPrefsDataInt("LOCAL_VERSION_BUIDLE", 0);
        }
Exemple #6
0
        private static void GetUserSetting()
        {
            wholeModule = PersistenceData.GetPrefsDataBool("ASSET_PACKAGER_WHOLE_MODULE");

            string _v = RunningTimeData.GetRunningData(CommonKey.VERSION_LOCAL, "2.0.0.0");

            version = new Version(_v);
            string _bu = DateTime.Now.ToString("MMdd");

            buidle = int.Parse(_bu);
            if (buidle > version.Build)
            {
                buidle = 0;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }

            buidle = PersistenceData.GetPrefsDataInt("LOCAL_VERSION_BUIDLE", 0);
        }
Exemple #7
0
        private void SetUserSetting()
        {
            ComponentDataSetServer();
            ComponentDataSetBundleIdentify();

            //基础模块(针对业务逻辑)
            string _baseJson = JsonMapper.ToJson(baseModule);

            RunningTimeData.SetRunningData("JSON_BASE_MODULE", _baseJson);

            //平台
            PersistenceData.SavePrefsData("BUNDLE_PLANTFORM", (int)bt);
            //是否debug版本
            PersistenceData.SavePrefsData("BUNDLE_ISDEBUG", isDebug);
            //全包含资源
            PersistenceData.SavePrefsData("BUNDLE_ISFULL", isFull);
            //分离体
            PersistenceData.SavePrefsData("BUNDLE_ISDEPART", buildDepartPackage);
            //不打新资源(不存在依然会打包资源)
            PersistenceData.SavePrefsData("BUNDLE_ISOLDRES", oldRes);
        }
Exemple #8
0
 private void SetUserSetting()
 {
     PersistenceData.SavePrefsData("CREATE_MODULE_USE_MVC", useMVC);
     PersistenceData.SavePrefsData("CREATE_MODULE_CREATER", creaters.ToString());
 }