Added NetworkSpawn invocation for SceneObjects when they get marked

This commit is contained in:
Albin Corén 2018-04-20 16:40:29 +02:00
parent cb1bcaf14f
commit 3abb311f82

View File

@ -91,7 +91,10 @@ namespace MLAPI.NetworkingManagerComponents.Core
for (int i = 0; i < netObjects.Length; i++)
{
if (netObjects[i].sceneObject == null)
{
netObjects[i].InvokeBehaviourNetworkSpawn();
netObjects[i].sceneObject = true;
}
}
}