Пример #1
0
 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;
 }
Пример #2
0
 static MovingPlatform()
 {
     CCMotor.MovingPlatform movingPlatform = new CCMotor.MovingPlatform()
     {
         enable = true,
         movementTransfer = CCMotor.JumpMovementTransfer.PermaTransfer
     };
     CCMotor.MovingPlatform.init = movingPlatform;
 }