This commit is contained in:
Mister_Nebula 2020-12-16 17:34:54 +00:00
parent 7a4149bee6
commit c2eeddc484

View File

@ -99,8 +99,8 @@ namespace QSB
{ {
var ident = go.AddComponent<QSBNetworkIdentity>(); var ident = go.AddComponent<QSBNetworkIdentity>();
ident.LocalPlayerAuthority = true; ident.LocalPlayerAuthority = true;
ident.SetValue("m_AssetId", playerPrefab.GetComponent<NetworkIdentity>().assetId); ident.SetValue("m_AssetId", go.GetComponent<NetworkIdentity>().assetId);
ident.SetValue("m_SceneId", playerPrefab.GetComponent<NetworkIdentity>().sceneId); ident.SetValue("m_SceneId", go.GetComponent<NetworkIdentity>().sceneId);
} }
private void SetupNetworkTransform(GameObject go) private void SetupNetworkTransform(GameObject go)