示例#1
0
 public override void onPickUp(Character c, float duration)
 {
     base.onPickUp(c, duration);
     if (defaultStrategy == null)
     {
         defaultStrategy = c.jumpStrategy;
     }
     c.jumpStrategy = new DoubleJump();
     if (c is Player p)
     {
         p.addItem = this;
     }
 }
示例#2
0
 public OffsetJumper(int[] offsets, IJumpStrategy strategy)
 {
     _offsets  = offsets;
     _strategy = strategy;
 }