From 846b439528f22015ea0d0b06bfdd5adce74a8430 Mon Sep 17 00:00:00 2001 From: Alex Lementuev Date: Sun, 15 Dec 2019 15:03:24 -0800 Subject: [PATCH 1/2] Unity 2020.x compatibility --- Project/Assets/LunarConsole/Editor/AndroidPlugin.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Project/Assets/LunarConsole/Editor/AndroidPlugin.cs b/Project/Assets/LunarConsole/Editor/AndroidPlugin.cs index 26afdd5e..54890ad2 100644 --- a/Project/Assets/LunarConsole/Editor/AndroidPlugin.cs +++ b/Project/Assets/LunarConsole/Editor/AndroidPlugin.cs @@ -26,11 +26,17 @@ using LunarConsolePluginInternal; +#if UNITY_2020_1_OR_NEWER +using CallbackFunction = System.Action; +#else +using CallbackFunction = UnityEditor.EditorApplication.CallbackFunction; +#endif + namespace LunarConsoleEditorInternal { static class AndroidPlugin { - private static EditorApplication.CallbackFunction s_onRetry; + private static CallbackFunction s_onRetry; public static void SetEnabled(bool enabled, bool retrying = false) { From b3a7d602a5acfcb62fb0420d69e4ab8b01b820bf Mon Sep 17 00:00:00 2001 From: Alex Lementuev Date: Sun, 15 Dec 2019 15:08:46 -0800 Subject: [PATCH 2/2] Bumped plugin version to 1.6.4 --- CHANGELOG.md | 6 ++++++ Project/Assets/LunarConsole/Scripts/Constants.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0fd9001..204eac8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Lunar Console Changelog +## v.1.6.4 - 12/15/2019 + +**Fixes:** + +* Unity 2020.x incompatibility fix. + ## v.1.6.3 - 11/3/2019 **Fixes:** diff --git a/Project/Assets/LunarConsole/Scripts/Constants.cs b/Project/Assets/LunarConsole/Scripts/Constants.cs index c842d8ba..4605c2e4 100644 --- a/Project/Assets/LunarConsole/Scripts/Constants.cs +++ b/Project/Assets/LunarConsole/Scripts/Constants.cs @@ -26,7 +26,7 @@ namespace LunarConsolePluginInternal { public static class Constants { - public static readonly string Version = "1.6.3"; + public static readonly string Version = "1.6.4"; public static readonly string UpdateJsonURLFull = "https://raw.githubusercontent.com/SpaceMadness/lunar-unity-console/master/Builder/updater-full.json"; public static readonly string UpdateJsonURLFree = "https://raw.githubusercontent.com/SpaceMadness/lunar-unity-console/master/Builder/updater-free.json";