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