public BlackTransition(Game game, BlackTransitionType type, float delayBeforeStart) : base(game) { m_type = type; m_wipe = new BoxWipe(); m_wipe.Coverage = (type == BlackTransitionType.FromBlack) ? 1.0f : 0.0f; m_delayBeforeStart = delayBeforeStart; }
protected override void OnShutdown() { Game.Screen.Elements.Remove(m_wipe); m_wipe.Dispose(); m_wipe = null; if (m_type == BlackTransitionType.ToBlack) { Before.Hide(); After.Reveal(); } }
protected override void OnShutdown() { Game.Screen.Elements.Remove(m_wipe); m_wipe.Dispose(); m_wipe = null; }
public WipeTransition(Game game, float delayBeforeStart) : base(game) { m_wipe = new BoxWipe(); m_delayBeforeStart = delayBeforeStart; }