Beispiel #1
0
 static void Prefix(ActorMotor __instance, ref ActorMotor.JumpActionParamer ___jumpParamer)
 {
     if (!enabled)
     {
         return;
     }
     ___jumpParamer.JumpInitSpeed = 27f * (float)Math.Sqrt(settings.JumpHeight);
 }
Beispiel #2
0
 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>();
 }
Beispiel #4
0
 public Character()
 {
     motor = new ActorMotor(this);
 }