static void Prefix(ActorMotor __instance, ref ActorMotor.JumpActionParamer ___jumpParamer) { if (!enabled) { return; } ___jumpParamer.JumpInitSpeed = 27f * (float)Math.Sqrt(settings.JumpHeight); }
static void Prefix(ActorMotor __instance, bool ___onJump, Actor ___actor) { if (!enabled || !settings.multiJump) { return; } if (!___actor.IsAnimTag("Jump") && !___actor.IsAnimTag("JumpEnd")) { jumpsJumped = 0; } }
void Start() { _motor = GetComponent <ActorMotor>(); }
public Character() { motor = new ActorMotor(this); }