mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
Was setting rotation twice
This commit is contained in:
parent
875d269781
commit
991e3bfc5d
@ -15,7 +15,6 @@ public class StationaryProbeLauncherTransformSync : RotatingElementsVariableSync
|
||||
|
||||
var launcher = (WorldObject.AttachedObject as StationaryProbeLauncher);
|
||||
|
||||
writer.Write(launcher.transform.localRotation);
|
||||
writer.Write(launcher._degreesX);
|
||||
writer.Write(launcher._degreesY);
|
||||
writer.Write(launcher._audioSource.GetLocalVolume());
|
||||
@ -27,7 +26,6 @@ public class StationaryProbeLauncherTransformSync : RotatingElementsVariableSync
|
||||
|
||||
var launcher = (WorldObject.AttachedObject as StationaryProbeLauncher);
|
||||
|
||||
launcher.transform.localRotation = reader.Read<Quaternion>();
|
||||
launcher._degreesX = reader.Read<float>();
|
||||
launcher._degreesY = reader.Read<float>();
|
||||
launcher._audioSource.SetLocalVolume(reader.Read<float>());
|
||||
|
Loading…
x
Reference in New Issue
Block a user