set player prefab asset id since that's not done in editor

This commit is contained in:
JohnCorby 2022-01-15 01:20:05 -08:00
parent ff9a93108c
commit 1debeb2325

View File

@ -56,6 +56,7 @@ namespace QSB
PlayerName = GetPlayerName();
playerPrefab = QSBCore.NetworkAssetBundle.LoadAsset<GameObject>("Assets/Prefabs/NETWORK_Player_Body.prefab");
playerPrefab.GetRequiredComponent<NetworkIdentity>().assetId = new Guid(BitConverter.GetBytes(1));
ShipPrefab = MakeNewNetworkObject(2, "NetworkShip", typeof(ShipTransformSync));
spawnPrefabs.Add(ShipPrefab);