From 2fc246266a6eb955811521106e35a8a3b462f690 Mon Sep 17 00:00:00 2001 From: Alan Du Date: Wed, 12 Feb 2025 21:40:50 +0100 Subject: [PATCH] Fix UNITY_2019_1_OR_NEWER directive as we have to specify the minimum minor version. --- Editor/NativeDllHandler.cs | 4 ++-- Runtime/DiscordManager.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor/NativeDllHandler.cs b/Editor/NativeDllHandler.cs index 948b09d..1a5ab70 100644 --- a/Editor/NativeDllHandler.cs +++ b/Editor/NativeDllHandler.cs @@ -35,7 +35,7 @@ static DiscordNativeInstall() } } -#if !UNITY_2019_OR_NEWER +#if !UNITY_2019_1_OR_NEWER FixLinkerSettings(); #endif } @@ -64,4 +64,4 @@ static void FixLinkerSettings() AssetDatabase.Refresh(); } } -} \ No newline at end of file +} diff --git a/Runtime/DiscordManager.cs b/Runtime/DiscordManager.cs index de18e19..3f2323d 100644 --- a/Runtime/DiscordManager.cs +++ b/Runtime/DiscordManager.cs @@ -87,7 +87,7 @@ public enum Pipe #endregion [Header("Handlers and Events")] -#if UNITY_2019_OR_NEWER +#if UNITY_2019_1_OR_NEWER public UnityEvent OnReady; public UnityEvent OnClose; public UnityEvent OnPresence;