public async void NextGame() { winTextAnimator.Stop(); await gameOverFrame .CreateAnimator <TakingOffAnimator>() .SetDuration(300) .Animate(); gameOverFrame.Visibility = ViewStates.Gone; frame.Visibility = ViewStates.Visible; if (!runner.CanNext) { Finish(); return; } refreshButton.Visibility = ViewStates.Visible; runner.Next(); if (string.IsNullOrWhiteSpace(runner.Definition.Instructions)) { topLabel.Text = runner.Definition.DisplayLevel; } else { topLabel.Text = runner.Definition.Instructions; } BuildGrid(300); }
internal void PauseAnimation() { nextAnimator?.Stop(); nextAnimator?.ResetAnimations(); nextAnimator = null; }