Exemple #1
0
 private void Start()
 {
     backButton
     .OnClickAsObservable()
     .Subscribe(_ => sceneManager.Back())
     .AddTo(this);
 }
Exemple #2
0
    private void Start()
    {
        nextButton
        .OnClickAsObservable()
        .Subscribe(_ => sceneManager.Next(Scene.Live))
        .AddTo(this);

        backButton
        .OnClickAsObservable()
        .Subscribe(_ => sceneManager.Back())
        .AddTo(this);
    }