FinishLine.cs
using Sandbox;

public sealed class FinishLine : Component
{
    public void PlayerEntered( GameObject other )
    {
        var redLightPlayer = other.Components.Get<RedLightPlayer>();

        if ( redLightPlayer == null )
            return;

        redLightPlayer.State = RedLightPlayer.PlayerState.Win;

        Log.Info( "player crossed finish line" );
    }
}