public MovingPlatformContext(ref CCMotor.MovingPlatform setup) { this.setup = setup; this.hitPlatform = null; this.activePlatform = null; this.activeLocal = new CCMotor.MovingPlatformContext.PointAndRotation(); this.activeGlobal = new CCMotor.MovingPlatformContext.PointAndRotation(); this.lastMatrix = new Matrix4x4(); this.platformVelocity = new Vector3(); this.newPlatform = false; }
static MovingPlatform() { CCMotor.MovingPlatform movingPlatform = new CCMotor.MovingPlatform() { enable = true, movementTransfer = CCMotor.JumpMovementTransfer.PermaTransfer }; CCMotor.MovingPlatform.init = movingPlatform; }