@namespace MurderGame @inherits Sandbox.UI.Panel @if (ShowOverlay) {
You have died
} @code { public static DeathOverlay Instance { get; private set; } public DeathOverlay() { Instance = this; } public bool ShowOverlay { get; set; } protected override int BuildHash() { return ShowOverlay.GetHashCode(); } }