예제 #1
0
        public void Init()
        {
            var stats = getPlayerStats.Execute();

            view.SetScore(stats.Score);
            view.SetMaxScore(stats.MaxScore);
        }
예제 #2
0
        public void Init()
        {
            var stats = getPlayerStats.Execute();

            view.SetLevel(stats.Level + 1);
            view.SetScore(stats.Score);
            view.SetMaxScore(stats.MaxScore);

            disposables = new CompositeDisposable(Observable.Timer(TimeSpan.FromSeconds(5)).First().Subscribe(_ =>
            {
                initNextLevel.Execute();
                view.DestroyView();
            }));
        }