mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
.
This commit is contained in:
parent
504e4c82e6
commit
2123c19ec4
@ -37,7 +37,7 @@ namespace QSB.TransformSync
|
||||
var transformSync = PlayerRegistry.GetTransformSync(message.SenderId);
|
||||
DebugLog.ToScreen($"{transformSync.GetType().Name} of ID {message.SenderId} set to {message.SectorName}");
|
||||
UnityHelper.Instance.RunWhen(() => transformSync.SyncedTransform != null,
|
||||
() => transformSync.SetReference(sector));
|
||||
() => transformSync.SetReferenceSector(sector));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ namespace QSB.TransformSync
|
||||
SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, Time.deltaTime);
|
||||
}
|
||||
|
||||
public void SetReference(Sector sector)
|
||||
public void SetReferenceSector(Sector sector)
|
||||
{
|
||||
ReferenceSector = sector;
|
||||
SyncedTransform.parent = ReferenceSector.transform;
|
||||
|
Loading…
x
Reference in New Issue
Block a user