Beispiel #1
0
        public static void LoadToObject(Component game, ref ConstantForceData data)
        {
            var obj = game.GetComponent <ConstantForce2D>();

            if (obj == null)
            {
                return;
            }
            obj.force         = data.force;
            obj.relativeForce = data.relativeForce;
            obj.torque        = data.torque;
        }
Beispiel #2
0
 public unsafe override void Load(FakeStruct fake)
 {
     data = *(ConstantForceData *)fake.ip;
 }