Ejemplo n.º 1
0
 public SetSpeed(ActionPresets preset)
 {
     if (preset == ActionPresets.Gravity)
     {
         this.horizontal = false;
         this.targetSpeed = 4f;
         this.accel = 2f;
     }
     else if (preset == ActionPresets.LightGravity)
     {
         this.horizontal = false;
         this.targetSpeed = 4f;
         this.accel = 1.5f;
     }
 }
Ejemplo n.º 2
0
 public Jump(ActionPresets preset)
 {
     this.horizontal = true;
     this.vertical = true;
     this.dqOnLand = true;
     if (preset == ActionPresets.Recoil)
     {
         this.xSpeed = new Speed(-3f, 0.5f, 0f);
         this.ySpeed = new Speed(-1.5f, 1f, 4f);
         this.playAnim = false;
         this.dqOnLand = true;
     }
     if (preset == ActionPresets.BossRecoil)
     {
         this.xSpeed = new Speed(-3f, 0.5f, 0f);
         this.playAnim = false;
         this.dqOnLand = false;
         this.horizontal = true;
         this.vertical = false;
     }
 }