This commit is contained in:
Aleksander Waage 2020-08-14 23:00:56 +02:00
parent 504e4c82e6
commit 2123c19ec4
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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;