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