From c84b00336d0f8d6ffe770c3ecec3157a8e0059b1 Mon Sep 17 00:00:00 2001 From: MrGadget Date: Thu, 23 Jan 2020 12:46:03 -0500 Subject: [PATCH] Fix GetSceneIdenity name typo (#1450) --- Assets/Mirror/Runtime/NetworkIdentity.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index f3001609c..2ca0972e2 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -188,7 +188,18 @@ internal set // keep track of all sceneIds to detect scene duplicates static readonly Dictionary sceneIds = new Dictionary(); - public static NetworkIdentity GetSceneIdenity(ulong id) => sceneIds[id]; + /// + /// Obsolete: Use instead + /// + [Obsolete("Use GetSceneIdentity instead")] + public static NetworkIdentity GetSceneIdenity(ulong id) => GetSceneIdentity(id); + + /// + /// Gets the NetworkIdentity from the sceneIds dictionary with the corresponding id + /// + /// + /// NetworkIdentity from the sceneIds dictionary + public static NetworkIdentity GetSceneIdentity(ulong id) => sceneIds[id]; // used when adding players internal void SetClientOwner(NetworkConnection conn)