| | |
| | | }
|
| | |
|
| | | public static bool obfuscatorEnabled {
|
| | | get { return LocalSave.GetBool("obfuscatorEnabled",false); }
|
| | | get { return LocalSave.GetBool("obfuscatorEnabled", false); }
|
| | | set { LocalSave.SetBool("obfuscatorEnabled", value); }
|
| | | }
|
| | |
|
| | | public static int AssetPrior {
|
| | | get { return LocalSave.GetInt("HalfAssetPrior", 1); }
|
| | | set { LocalSave.SetInt("HalfAssetPrior", value); }
|
| | | }
|
| | |
|
| | | static string ANDROID_PLUGIN_PATH = Application.dataPath + "/Plugins/Android";
|
| | |
| | | fileName = fileName.Replace(extersion, "");
|
| | | }
|
| | |
|
| | | if (!PriorBundleConfig.mobs.Contains(fileName))
|
| | | var prior = PriorBundleConfig.GetAssetPrior(AssetVersion.AssetCategory.Mob, fileName);
|
| | | if (prior > AssetPrior)
|
| | | {
|
| | | File.Delete(file.FullName);
|
| | | }
|
| | |
| | | fileName = fileName.Replace(extersion, "");
|
| | | }
|
| | |
|
| | | if (!PriorBundleConfig.scenes.Contains(fileName))
|
| | | var prior = PriorBundleConfig.GetAssetPrior(AssetVersion.AssetCategory.Scene, fileName);
|
| | | if (prior > AssetPrior)
|
| | | {
|
| | | File.Delete(file.FullName);
|
| | | }
|
| | |
| | | fileName = fileName.Replace(extersion, "");
|
| | | }
|
| | |
|
| | | if (!PriorBundleConfig.audios.Contains(fileName))
|
| | | var prior = PriorBundleConfig.GetAssetPrior(AssetVersion.AssetCategory.Audio, fileName);
|
| | | if (prior > AssetPrior)
|
| | | {
|
| | | File.Delete(file.FullName);
|
| | | }
|
| | |
| | | fileName = fileName.Replace(extersion, "");
|
| | | }
|
| | |
|
| | | if (!PriorBundleConfig.effects.Contains(fileName))
|
| | | var prior = PriorBundleConfig.GetAssetPrior(AssetVersion.AssetCategory.Effect, fileName);
|
| | | if (prior > AssetPrior)
|
| | | {
|
| | | File.Delete(file.FullName);
|
| | | }
|
| | |
| | | FileExtersion.DirectoryCopy(StringUtility.Contact(_sdkPath, "/ChannelDiff/Android/", versionConfig.appId), ANDROID_PLUGIN_PATH);
|
| | |
|
| | | var option = AssetDatabase.LoadAssetAtPath<Options>("Assets/Editor/Beebyte/Obfuscator/ObfuscatorOptions.asset");
|
| | | if (option!=null)
|
| | | if (option != null)
|
| | | {
|
| | | option.enabled = obfuscatorEnabled;
|
| | | EditorUtility.SetDirty(option);
|