working on multiplayer - still delay with more actors :/
This commit is contained in:
@@ -21,8 +21,10 @@ namespace RebootReality.jelycho {
|
||||
base.OnActorCommandServer(actorCommand);
|
||||
|
||||
if (actorCommand.CommandID == (ushort) ActorSpawnerCommands.SpawnActor) {
|
||||
(Vector3 spawnPoint, Quaternion spawnRotation) = GetSpawnPoint();
|
||||
RR.SpawnActor(m_ActorPrefabReference, spawnPoint, spawnRotation);
|
||||
for (int i = 0; i < 200; ++i) {
|
||||
(Vector3 spawnPoint, Quaternion spawnRotation) = GetSpawnPoint();
|
||||
RR.SpawnActor(m_ActorPrefabReference, spawnPoint, spawnRotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user