예제 #1
0
 public void ScreenBack(BaseScreen next, BaseScreen prev, Action afterPrev = null)
 {
     prev.IsProcessInput = false;
     prev.ApplyAnimation(Game.Content.Animations.ZoomIn20);
     prev.ApplyAnimation(Game.Content.Animations.FadeIn, true, () =>
     {
         next.ApplyAnimation(Game.Content.Animations.ZoomOut20, true, () => next.IsProcessInput = true, () =>
         {
             prev.Visible = false;
             ActiveScreen = next;
             afterPrev?.Invoke();
             next.Visible = true;
         });
         next.ApplyAnimation(Game.Content.Animations.FadeIn);
     });
 }
예제 #2
0
 public void FirsScreenAppear(BaseScreen screen)
 {
     screen.ApplyAnimation(Game.Content.Animations.FirstScreenFadeIn, false, () => screen.IsProcessInput = true, () => screen.Visible = true);
     ActiveScreen = screen;
 }