Implement player network spawning and position synchronization
This commit is contained in:
@@ -19,8 +19,9 @@ public class PlayerSpawner : MonoBehaviour
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
public void Spawn(GameObject player)
|
||||
public void Spawn(PlayerComponent player)
|
||||
{
|
||||
player.GetComponent<HVRTeleporter>().Teleport(spawns.First().position);
|
||||
var spawn = spawns.First();
|
||||
player.Teleport(spawn.position, spawn.eulerAngles);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user