From 3abb311f82ad345c7190751867ef3ba22a065ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Cor=C3=A9n?= <2108U9@gmail.com> Date: Fri, 20 Apr 2018 16:40:29 +0200 Subject: [PATCH] Added NetworkSpawn invocation for SceneObjects when they get marked --- MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs b/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs index 1f182fb..4b76cd6 100644 --- a/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs +++ b/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs @@ -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; + } } }