private void OnUnregisterTickable(object sender, EventArgs eventArgs) { if (sender is ITickable tickable) { Tickables.Remove(tickable); } }