Exemplo n.º 1
0
        /// <summary>
        /// Affiche l'écran avec son animation
        /// </summary>
        /// <param name="screenObject"></param>
        public void Display(ScreenObject screenObject)
        {
            if (displayedScreens.Contains(screenObject))
            {
                return;
            }

            displayedScreens.Add(screenObject);
            screenObject.Appear();
            SortScreens();
        }
Exemplo n.º 2
0
        public void Display(ScreenObject screenObject, int index)
        {
            if (displayedScreens.Contains(screenObject))
            {
                return;
            }

            displayedScreens.Insert(index, screenObject);
            screenObject.Appear();
            SortScreens();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Simplifie la transition entre les scènes de jeu.
 /// </summary>
 /// <param name="transitionScreen"></param>
 /// <param name="callback"></param>
 public void DisplayTransition(ScreenObject transitionScreen, Action callback)
 {
     this.callback = callback;
     transitionScreen.OnAppearEnd += TransitionScreen_OnAppearEnd;
     transitionScreen.Appear();
 }