public static void LoadToObject(Component game, ref WheelJointData data) { var obj = game.GetComponent <WheelJoint2D>(); if (obj == null) { return; } obj.enableCollision = data.enableCollision; obj.breakForce = data.breakForce; obj.breakTorque = data.breakTorque; obj.anchor = data.anchor; obj.connectedAnchor = data.connectedAnchor; obj.autoConfigureConnectedAnchor = data.autoConfigure; obj.suspension = data.suspension; obj.useMotor = data.useMotor; obj.motor = data.motor; }
public unsafe override void Load(FakeStruct fake) { data = *(WheelJointData *)fake.ip; }