This commit is contained in:
vis2k 2021-03-09 15:40:33 +08:00
parent 6b9acacaf0
commit 04b3e34593

View File

@ -281,11 +281,9 @@ void Awake()
if (hasSpawned)
{
Debug.LogError($"{name} has already spawned. Don't call Instantiate for NetworkIdentities that were in the scene since the beginning (aka scene objects). Otherwise the client won't know which object to use for a SpawnSceneObject message.");
SpawnedFromInstantiate = true;
Destroy(gameObject);
}
hasSpawned = true;
}