public override void Apply(MobileLifetimeObject mlo, InputToken inputToken, Action <string> eventDelegate) { if (inputToken.JumpPressed && mlo.grounded) { Debug.Log("Jump"); mlo.mobile.VVelocity = JumpForce; } }
public override void Apply(MobileLifetimeObject mlo, InputToken inputToken, System.Action <string> eventDelegate) { mlo.mobile.HVelocity = inputToken.Direction.x * speed; }
public override void Apply(MobileLifetimeObject mlo, InputToken inputToken, System.Action <string> eventDelegate) { mlo.gravityMultipler *= multiplier; }
abstract public void Apply(MobileLifetimeObject mlo, InputToken inputToken, System.Action <string> eventDelegate);