mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
6b9acacaf0
commit
04b3e34593
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user