Exemplo n.º 1
0
        public static void LoadToObject(Component game, ref RelativeJointData data)
        {
            var obj = game.GetComponent <RelativeJoint2D>();

            if (obj == null)
            {
                return;
            }
            obj.enableCollision     = data.enableCollision;
            obj.breakForce          = data.breakForce;
            obj.breakTorque         = data.breakTorque;
            obj.maxForce            = data.maxForce;
            obj.maxTorque           = data.maxTorque;
            obj.correctionScale     = data.correctionScale;
            obj.autoConfigureOffset = data.autoConfigureOffset;
            obj.linearOffset        = data.linearOffset;
            obj.angularOffset       = data.angularOffset;
        }
Exemplo n.º 2
0
 public unsafe override void Load(FakeStruct fake)
 {
     data = *(RelativeJointData *)fake.ip;
 }