Ejemplo n.º 1
0
        public override void OnEntering(IScreen last)
        {
            applyArrivingDefaults(false);

            backgroundStack?.Push(localBackground = CreateBackground());

            this.FadeIn(500, Easing.OutExpo);
            this.MoveTo(new Vector2(10, 0));
            this.MoveTo(new Vector2(0, 0), 500, Easing.OutExpo);

            base.OnEntering(last);
        }
Ejemplo n.º 2
0
        public void Push(BackgroundScreen screen)
        {
            if (screen == null)
            {
                return;
            }

            if (EqualityComparer <BackgroundScreen> .Default.Equals((BackgroundScreen)CurrentScreen, screen))
            {
                return;
            }

            base.Push(screen);
        }