リリースではデバッグ非表示

This commit is contained in:
kimura 2021-07-13 09:10:22 +09:00
parent 34080d9d16
commit f20597e9e7
1 changed files with 5 additions and 0 deletions

View File

@ -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