mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
renamed local var
This commit is contained in:
parent
c35ddd20db
commit
a8202e5d0c
@ -1169,10 +1169,10 @@ public static void PrepareToSpawnSceneObjects()
|
|||||||
{
|
{
|
||||||
if (spawnableObjects.TryGetValue(identity.sceneId, out NetworkIdentity existingIdentity))
|
if (spawnableObjects.TryGetValue(identity.sceneId, out NetworkIdentity existingIdentity))
|
||||||
{
|
{
|
||||||
string errorMsg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" +
|
string msg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" +
|
||||||
$"This can happen if a networked object is persisted in DontDestroyOnLoad through loading / changing to the scene where it originated,\n" +
|
$"This can happen if a networked object is persisted in DontDestroyOnLoad through loading / changing to the scene where it originated,\n" +
|
||||||
$"otherwise you may need to open and re-save the {identity.gameObject.scene} to reset scene id's.";
|
$"otherwise you may need to open and re-save the {identity.gameObject.scene} to reset scene id's.";
|
||||||
Debug.LogWarning(errorMsg, identity.gameObject);
|
Debug.LogWarning(msg, identity.gameObject);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
spawnableObjects.Add(identity.sceneId, identity);
|
spawnableObjects.Add(identity.sceneId, identity);
|
||||||
|
Loading…
Reference in New Issue
Block a user