/// <summary> /// Enlève l'écran avec son animation /// </summary> /// <param name="screenObject"></param> public void Remove(ScreenObject screenObject) { if (!displayedScreens.Contains(screenObject) || !screenObject.IsAppear) { return; } screenObject.OnDisappearEnd += ScreenObject_OnDisappearEnd; screenObject.Disappear(); }
public void RemoveTransition(Action callback = null) { if (transitionScreen == null) { return; } if (callback != null) { this.callback = callback; transitionScreen.OnDisappearEnd += TransitionScreen_OnDisappearEnd; } transitionScreen.Disappear(); }