private static void InjectionDetectorTargetCompatibleCheck() { if (!IsInjectionDetectorTargetCompatible()) { if (!File.Exists(ActEditorGlobalStuff.injectionDataPath)) { return; } Debug.LogWarning(ActEditorGlobalStuff.LOG_PREFIX + "Injection Detector is not available on selected platform (" + EditorUserBuildSettings.activeBuildTarget + ") and will be disabled!"); ActEditorGlobalStuff.CleanInjectionDetectorData(); } }
private static bool InjectionDetectorTargetCompatibleCheck() { #if UNITY_STANDALONE || UNITY_WEBPLAYER || UNITY_IPHONE || UNITY_ANDROID if (EditorPrefs.GetBool(ActEditorGlobalStuff.PREFS_INJECTION_GLOBAL) && !EditorPrefs.GetBool(ActEditorGlobalStuff.PREFS_INJECTION)) { EditorPrefs.SetBool(ActEditorGlobalStuff.PREFS_INJECTION, true); } return(true); #else bool injectionEnabled = EditorPrefs.GetBool(ActEditorGlobalStuff.PREFS_INJECTION_GLOBAL); if (injectionEnabled && EditorPrefs.GetBool(ActEditorGlobalStuff.PREFS_INJECTION)) { Debug.LogWarning("[ACT] Injection Detector is not available on selected platform (" + EditorUserBuildSettings.activeBuildTarget + ") and will be disabled!"); EditorPrefs.SetBool(ActEditorGlobalStuff.PREFS_INJECTION, false); ActEditorGlobalStuff.CleanInjectionDetectorData(); } return(false); #endif }