Fix GetSceneIdenity name typo (#1450)

This commit is contained in:
MrGadget 2020-01-23 12:46:03 -05:00 committed by Paul Pacheco
parent 84fc240d00
commit c84b00336d

View File

@ -188,7 +188,18 @@ internal set
// keep track of all sceneIds to detect scene duplicates
static readonly Dictionary<ulong, NetworkIdentity> sceneIds = new Dictionary<ulong, NetworkIdentity>();
public static NetworkIdentity GetSceneIdenity(ulong id) => sceneIds[id];
/// <summary>
/// Obsolete: Use <see cref="GetSceneIdentity(ulong)" /> instead
/// </summary>
[Obsolete("Use GetSceneIdentity instead")]
public static NetworkIdentity GetSceneIdenity(ulong id) => GetSceneIdentity(id);
/// <summary>
/// Gets the NetworkIdentity from the sceneIds dictionary with the corresponding id
/// </summary>
/// <param name="id"></param>
/// <returns>NetworkIdentity from the sceneIds dictionary</returns>
public static NetworkIdentity GetSceneIdentity(ulong id) => sceneIds[id];
// used when adding players
internal void SetClientOwner(NetworkConnection conn)