diff --git a/Assets/Mirror/Examples/Room/Scripts/NetworkRoomManagerExt.cs b/Assets/Mirror/Examples/Room/Scripts/NetworkRoomManagerExt.cs index 9d199cea95..45e37338a2 100644 --- a/Assets/Mirror/Examples/Room/Scripts/NetworkRoomManagerExt.cs +++ b/Assets/Mirror/Examples/Room/Scripts/NetworkRoomManagerExt.cs @@ -37,8 +37,12 @@ public override void OnRoomClientSceneChanged() { // Don't initialize the pool for host client because it's // already initialized in OnRoomServerSceneChanged - if (!NetworkServer.active && networkSceneName == GameplayScene) - Spawner.InitializePool(rewardPrefab, 10); + if (NetworkServer.active) return; + + if (networkSceneName == GameplayScene) + Spawner.InitializePool(rewardPrefab, poolSize); + else + Spawner.ClearPool(); } ///