From 2983c45f1fe5254c148d714da20f6c6674d29094 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 25 Oct 2024 06:24:39 -0400 Subject: [PATCH] Updated NetworkRoomManager Script Template - Added static singleton --- ...-Mirror__Network Room Manager-NewNetworkRoomManager.cs.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ScriptTemplates/54-Mirror__Network Room Manager-NewNetworkRoomManager.cs.txt b/Assets/ScriptTemplates/54-Mirror__Network Room Manager-NewNetworkRoomManager.cs.txt index 608599697..b93d5a9b9 100644 --- a/Assets/ScriptTemplates/54-Mirror__Network Room Manager-NewNetworkRoomManager.cs.txt +++ b/Assets/ScriptTemplates/54-Mirror__Network Room Manager-NewNetworkRoomManager.cs.txt @@ -18,6 +18,10 @@ using Mirror; /// public class #SCRIPTNAME# : NetworkRoomManager { + // Overrides the base singleton so we don't + // have to cast to this type everywhere. + public static new #SCRIPTNAME# singleton => (#SCRIPTNAME#)NetworkRoomManager.singleton; + #region Server Callbacks ///