Skip to content

Commit edc34ad

Browse files
authored
Add compiler directive
1 parent ad6f2b4 commit edc34ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Runtime

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Runtime/Availability.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public static bool IsMethodAvailable(Type declaringType, string methodName, Type
197197
public static bool IsPropertyAvailable(Type declaringType, string propertyName, RuntimeEnvironment env = default) => IsMemberAvailable(declaringType.GetProperty(propertyName), env);
198198
public static bool IsPropertyAvailable<DeclaringType>(string propertyName, RuntimeEnvironment env = default) => IsPropertyAvailable(typeof(DeclaringType), propertyName, env);
199199

200+
#if !UNITY_EDITOR_WIN
200201
#region Init & Shutdown
201202
[RuntimeInitializeOnLoadMethod]
202203
private static void OnApplicationStart()
@@ -208,5 +209,6 @@ private static void OnApplicationStart()
208209
Debug.Log($"[Apple.Core Plug-In Runtime] Availability Runtime Environment: {env.RuntimeOperatingSystem.ToString()} {env.VersionNumber.Major}.{env.VersionNumber.Minor}");
209210
}
210211
#endregion
212+
#endif
211213
}
212214
}

0 commit comments

Comments
 (0)