public void Begin() { presenter.Begin(); var name = string.IsNullOrEmpty(repository?.CurrentUserId) ? "???" : repository.CurrentUserId; presenter.SetAccountText($"{name}としてログイン"); presenter .LogoutButtonClickObservable .Subscribe(_ => { // ログアウト前にデータリセット repository.Clear(); SceneManager.LoadScene("Login"); }) .AddTo(disposablesComponent); }