private void CmdSpawnObjects()
 {
     NetworkServer.SpawnObjects();
 }
예제 #2
0
        private void CmdSpawnSomething(Vector3 position)
        {
            var player = Object.Instantiate(SpawnablePrefab, position, Quaternion.identity, transform);

            NetworkServer.Spawn(player);
        }