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

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