dispose抜け修正

This commit is contained in:
kimura 2022-02-15 17:59:57 +09:00
parent f029ae5728
commit 59160b98e0
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace MyGame.Scenes.CornField.Scripts
private IDisposable timerDisposable = null;
public IObservable<Unit> RewardButton => rewardButton.OnClickAsObservable().TakeUntilDestroy(this);
public void SetButtonActive(bool active)
private void SetButtonActive(bool active)
{
rewardButton.gameObject.SetActive(active);
DisableObject.SetActive(!active);
@ -40,7 +40,7 @@ namespace MyGame.Scenes.CornField.Scripts
}, () =>
{
SetButtonActive(true);
});
}).AddTo(this);
}
}
}