fix DebugGame.cs
This commit is contained in:
parent
c1df5d0e40
commit
3335373be4
|
|
@ -19,13 +19,19 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
[SerializeField] private Button resetPlayCountButton;
|
[SerializeField] private Button resetPlayCountButton;
|
||||||
[SerializeField] private Button allHiScoreButton;
|
[SerializeField] private Button allHiScoreButton;
|
||||||
|
|
||||||
private void Start()
|
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||||
|
#else
|
||||||
|
private void Awake()
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
|
||||||
Destroy(resetScoreButton);
|
Destroy(resetScoreButton);
|
||||||
Destroy(resetPlayCountButton);
|
Destroy(resetPlayCountButton);
|
||||||
Destroy(allHiScoreButton);
|
Destroy(allHiScoreButton);
|
||||||
#else
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
isDebug.AddTo(this);
|
isDebug.AddTo(this);
|
||||||
|
|
||||||
resetScoreButton.OnClickAsObservable().Subscribe(_ =>
|
resetScoreButton.OnClickAsObservable().Subscribe(_ =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue