public static void CheckItNow() { if (Directory.Exists("Assets/Plugins/UnityPurchasing/Bin")) { EditorUpdate.AddDefine("IAP", EditorUserBuildSettings.selectedBuildTargetGroup); if (Instance != null) { Instance.Close(); } } else { OpenWelcomeWindow(); } }
public static void CheckItNow() { if (Directory.Exists("Assets/Plugins/UnityPurchasing/Bin")) { SetScriptingDefineSymbols(); if (Instance != null) { Instance.Close(); } } else { OpenWelcomeWindow(); } EditorApplication.update -= CheckItNow; }