public override void Destroy() { base.Destroy(); Lights.Remove(Light); }
public LightComponent(Entity entity, float radius, Color color) { Light = Lights.New(entity, radius, color); Light.UpdateCache(); }
public LightComponent(Light light) { Light = light; Lights.Add(light); Light.UpdateCache(); }