mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
stupid crap
This commit is contained in:
parent
d236ae5b7f
commit
86412fbd82
@ -23,7 +23,7 @@ namespace QSB.Tools
|
||||
|
||||
private void Deactivate()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
//gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace QSB.TransformSync
|
||||
|
||||
var transformSync = PlayerRegistry.GetTransformSync(message.SenderId);
|
||||
DebugLog.ToScreen($"{transformSync.GetType().Name} of ID {message.SenderId} set to {message.SectorName}");
|
||||
transformSync.ReferenceTransform = sector.transform;
|
||||
transformSync.SetReference(sector.transform);
|
||||
}
|
||||
|
||||
public override void OnReceiveLocal(SectorMessage message) => OnReceiveRemote(message);
|
||||
|
@ -101,5 +101,11 @@ namespace QSB.TransformSync
|
||||
SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, Time.deltaTime);
|
||||
}
|
||||
|
||||
public void SetReference(Transform sectorTransform)
|
||||
{
|
||||
ReferenceTransform = sectorTransform;
|
||||
_positionSmoothVelocity = Vector3.zero;
|
||||
_rotationSmoothVelocity = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user