public void Init() { var stats = getPlayerStats.Execute(); view.SetScore(stats.Score); view.SetMaxScore(stats.MaxScore); }
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(); })); }