Changed to OnStartServer

This commit is contained in:
Chris Langsenkamp 2019-10-04 04:42:48 -04:00
parent 24052428e0
commit d177df8f35

View File

@ -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()