A small component attached to player entities that holds references to a PointLight and a SpotLight, and provides a method to set both lights' color simultaneously.
using Sandbox;
public sealed class PlayerLights : Component
{
[Property] public PointLight PointLight { get; set; }
[Property] public SpotLight SpotLight { get; set; }
public void SetLightColor( Color color )
{
PointLight.LightColor = color;
SpotLight.LightColor = color;
}
}