示例#1
0
        public async void OnGameOver()
        {
            refreshButton.Visibility = ViewStates.Invisible;
            undoButton.Visibility    = ViewStates.Invisible;

            await Task.Delay(400);

            frame.Visibility = ViewStates.Invisible;

            gameOverFrame.Visibility = ViewStates.Visible;
            await gameOverFrame
            .CreateAnimator <LandingAnimator>()
            .SetDuration(500)
            .Animate();

            winTextAnimator = winText
                              .CreateAnimator <PulseAnimator>()
                              .SetMax(1.4f)
                              .Start();
        }