private static void Clear() { obfuscatedAfterScene = false; noCSharpScripts = false; if (options != null && options.obfuscateMonoBehaviourClassNames == false) { Obfuscator.Clear(); } }
/** * This method restores obfuscated MonoBehaviour cs files to their original names. */ private static void RestoreAssets() { #if UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 #else if (BuildPipeline.isBuildingPlayer == false) { #endif try { EditorApplication.LockReloadAssemblies(); Obfuscator.RevertAssetObfuscation(); monoBehaviourAssetsNeedReverting = false; EditorApplication.update -= RestoreAssets; } finally { EditorApplication.UnlockReloadAssemblies(); } #if UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 #else } #endif Obfuscator.Clear(); }