public static void LoadToObject(Component game, ref PlatformEffectorData data) { var obj = game.GetComponent <PlatformEffector2D>(); if (obj == null) { return; } obj.useColliderMask = data.useColliderMask; obj.colliderMask = data.colliderMask; obj.useOneWay = data.useOneWay; obj.useOneWayGrouping = data.useOneWayGrouping; obj.useSideFriction = data.useSideFriction; obj.useSideBounce = data.useSideBounce; obj.surfaceArc = data.surfaceArc; obj.sideArc = data.sideArc; obj.rotationalOffset = data.rotationalOffset; }
public unsafe override void Load(FakeStruct fake) { data = *(PlatformEffectorData *)fake.ip; }