@using Sandbox; @using Sandbox.UI; @namespace MurderGame @inherits 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(); } }