TimeReset.cs

A small game component that resets a global time value when it starts. It exposes a ChickenControls property and sets ScoreManager.CurrentTime to 0 in OnStart.

using Sandbox;

public sealed class TimeReset : Component
{
	[Property] ChickenControls chicken { get; set; }
	protected override void OnStart()
	{
		ScoreManager.CurrentTime = 0;
		
	}
}