From f20597e9e7b2687d79e6dd6abd2af6468d49c0dc Mon Sep 17 00:00:00 2001 From: kimura Date: Tue, 13 Jul 2021 09:10:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9=E3=81=A7?= =?UTF-8?q?=E3=81=AF=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E9=9D=9E=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MainGameDebugView.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/popcorn/Assets/MainGameDebugView.cs b/popcorn/Assets/MainGameDebugView.cs index 8f410e24..f8f4998e 100644 --- a/popcorn/Assets/MainGameDebugView.cs +++ b/popcorn/Assets/MainGameDebugView.cs @@ -14,8 +14,13 @@ public class MainGameDebugView : MonoBehaviour private void Awake() { +#if DEVELOPMENT_BUILD || UNITY_EDITOR view.SetActive(true); Observable.NextFrame().Subscribe(_ => view.SetActive(false)); +#else + gameObject.SetActive(false); + return; +#endif } // Start is called before the first frame update