public static void LoadToObject(Component game, ref TargetJointData data) { var obj = game.GetComponent <TargetJoint2D>(); if (obj == null) { return; } obj.enableCollision = data.enableCollision; obj.breakForce = data.breakForce; obj.breakTorque = data.breakTorque; obj.maxForce = data.maxForce; obj.anchor = data.anchor; obj.target = data.target; obj.autoConfigureTarget = data.autoConfigureTarget; obj.dampingRatio = data.dampingRatio; }
public unsafe override void Load(FakeStruct fake) { data = *(TargetJointData *)fake.ip; }