mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
set player prefab asset id since that's not done in editor
This commit is contained in:
parent
ff9a93108c
commit
1debeb2325
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user