public void Clear() { if (Scene != null) { MapEnd?.Invoke(this, Scene); Scene.Dispose(); Scene = null; } }
private static void OnMapEnd() { try { MapEnd?.Invoke(); } catch (Exception ex) { Trace.WriteLine("Unhandled Exception in " + typeof(Game).Name + ".OnMapEnd!"); Trace.WriteLine(ex.ToString()); } }