mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Changed to OnStartServer
This commit is contained in:
parent
24052428e0
commit
d177df8f35
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user