mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
PredictionUtils: Fixed pre-Unity 2022.3 errors
This commit is contained in:
parent
41d12e67c3
commit
5616f8c5a0
@ -309,15 +309,17 @@ public static void MoveHingeJoints(GameObject source, GameObject destination)
|
|||||||
jointCopy.connectedMassScale = sourceJoint.connectedMassScale;
|
jointCopy.connectedMassScale = sourceJoint.connectedMassScale;
|
||||||
jointCopy.enableCollision = sourceJoint.enableCollision;
|
jointCopy.enableCollision = sourceJoint.enableCollision;
|
||||||
jointCopy.enablePreprocessing = sourceJoint.enablePreprocessing;
|
jointCopy.enablePreprocessing = sourceJoint.enablePreprocessing;
|
||||||
jointCopy.extendedLimits = sourceJoint.extendedLimits;
|
|
||||||
jointCopy.limits = sourceJoint.limits;
|
jointCopy.limits = sourceJoint.limits;
|
||||||
jointCopy.massScale = sourceJoint.massScale;
|
jointCopy.massScale = sourceJoint.massScale;
|
||||||
jointCopy.motor = sourceJoint.motor;
|
jointCopy.motor = sourceJoint.motor;
|
||||||
jointCopy.spring = sourceJoint.spring;
|
jointCopy.spring = sourceJoint.spring;
|
||||||
jointCopy.useAcceleration = sourceJoint.useAcceleration;
|
|
||||||
jointCopy.useLimits = sourceJoint.useLimits;
|
jointCopy.useLimits = sourceJoint.useLimits;
|
||||||
jointCopy.useMotor = sourceJoint.useMotor;
|
jointCopy.useMotor = sourceJoint.useMotor;
|
||||||
jointCopy.useSpring = sourceJoint.useSpring;
|
jointCopy.useSpring = sourceJoint.useSpring;
|
||||||
|
#if UNITY_2022_3_OR_NEWER
|
||||||
|
jointCopy.extendedLimits = sourceJoint.extendedLimits;
|
||||||
|
jointCopy.useAcceleration = sourceJoint.useAcceleration;
|
||||||
|
#endif
|
||||||
|
|
||||||
GameObject.Destroy(sourceJoint);
|
GameObject.Destroy(sourceJoint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user