From cf8074a357041d7bfc29d06214a9616a549adb0a Mon Sep 17 00:00:00 2001 From: Benjamin Hallion Date: Thu, 14 May 2020 11:36:54 +0200 Subject: [PATCH 1/2] Disable GPGSUpgrader automatic process when pressing Play in Editor mode --- source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs index 74dcb099c..64221bc8d 100644 --- a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs +++ b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs @@ -33,6 +33,8 @@ public class GPGSUpgrader /// static GPGSUpgrader() { + if (EditorApplication.isPlayingOrWillChangePlaymode) + return; Debug.Log("GPGSUpgrader start"); string initialVer = GPGSProjectSettings.Instance.Get(GPGSUtil.LASTUPGRADEKEY, "00000"); if (!initialVer.Equals(PluginVersion.VersionKey)) From 9ae7eb0618de167d056dac27b73903c1e143f4a8 Mon Sep 17 00:00:00 2001 From: Benjamin Hallion Date: Thu, 14 May 2020 11:38:36 +0200 Subject: [PATCH 2/2] fix indentation --- .../PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs index 64221bc8d..ba45782f3 100644 --- a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs +++ b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSUpgrader.cs @@ -33,8 +33,8 @@ public class GPGSUpgrader /// static GPGSUpgrader() { - if (EditorApplication.isPlayingOrWillChangePlaymode) - return; + if (EditorApplication.isPlayingOrWillChangePlaymode) + return; Debug.Log("GPGSUpgrader start"); string initialVer = GPGSProjectSettings.Instance.Get(GPGSUtil.LASTUPGRADEKEY, "00000"); if (!initialVer.Equals(PluginVersion.VersionKey))