mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50: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))
|
||||
{
|
||||
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" +
|
||||
$"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
|
||||
spawnableObjects.Add(identity.sceneId, identity);
|
||||
|
Loading…
Reference in New Issue
Block a user