diff --git a/Assets/Mirror/Examples/Room/Scripts/Spawner.cs b/Assets/Mirror/Examples/Room/Scripts/Spawner.cs index 0f357ddf5..ca39186e7 100644 --- a/Assets/Mirror/Examples/Room/Scripts/Spawner.cs +++ b/Assets/Mirror/Examples/Room/Scripts/Spawner.cs @@ -12,12 +12,10 @@ public class Spawner : NetworkBehaviour GameObject newPrize; Reward reward; - void Start() + public override void OnStartServer() { for (int i = 0; i < 10; i++) - { SpawnPrize(); - } } public void SpawnPrize()