mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
fix
This commit is contained in:
parent
68f3cf6dbf
commit
629ca73dcf
@ -37,10 +37,11 @@ namespace QSB.TransformSync
|
||||
|
||||
protected void Init()
|
||||
{
|
||||
ReferenceTransform = Locator.GetCenterOfTheUniverse().GetStaticReferenceFrame().transform;
|
||||
SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform();
|
||||
if (!hasAuthority)
|
||||
{
|
||||
SyncedTransform.position = Locator.GetRootTransform().position;
|
||||
SyncedTransform.position = ReferenceTransform.position;
|
||||
}
|
||||
_isInitialized = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user