diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index 3e4d523..ad20fe9 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -46,11 +46,13 @@ namespace TouchyTickets { var rainingTickets = new List(); var main = new Group(Anchor.TopLeft, Vector2.One, false) { OnUpdated = (e, time) => { + if (e.IsHidden) + return; for (var i = rainingTickets.Count - 1; i >= 0; i--) { if (rainingTickets[i].Update()) rainingTickets.RemoveAt(i); } - while (rainingTickets.Count < Math.Min(GameImpl.Instance.Map.TicketsPerSecond / 10, 200)) + while (rainingTickets.Count < Math.Min(GameImpl.Instance.Map.TicketsPerSecond / 20, 300)) rainingTickets.Add(new RainingTicket()); }, OnDrawn = (e, time, batch, alpha) => {