public override bool OnExiting(IScreen next) { RoomManager.PartRoom(); waves.Hide(); this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut(); screenStack.CurrentScreen?.OnExiting(next); base.OnExiting(next); return(false); }
public override bool OnExiting(IScreen next) { var subScreen = screenStack.CurrentScreen as Drawable; if (subScreen?.IsLoaded == true && screenStack.CurrentScreen.OnExiting(next)) { return(true); } RoomManager.PartRoom(); waves.Hide(); this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut(); base.OnExiting(next); return(false); }