From 1e5c6393a6b29eb00dbb8fb137d86647cb0c356b Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 28 Jul 2023 22:06:03 +0100 Subject: Add TryUnstuck and death overlay --- code/ui/overlay/DeathOverlay.Network.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 code/ui/overlay/DeathOverlay.Network.cs (limited to 'code/ui/overlay/DeathOverlay.Network.cs') diff --git a/code/ui/overlay/DeathOverlay.Network.cs b/code/ui/overlay/DeathOverlay.Network.cs new file mode 100644 index 0000000..f1f3bb2 --- /dev/null +++ b/code/ui/overlay/DeathOverlay.Network.cs @@ -0,0 +1,18 @@ +using Sandbox; + +namespace MurderGame; + +public partial class DeathOverlay +{ + [ClientRpc] + public static void Show( ) + { + if (Instance != null) Instance.ShowOverlay = true; + } + + [ClientRpc] + public static void Hide() + { + if (Instance != null) Instance.ShowOverlay = false; + } +} -- cgit v1.2.3-70-g09d2