private void OnMovementInput(object sender, MovementInputEventArgs args)
        {
            if (this.Player == null)
            {
                return;
            }

            this.Player.transform.position += this.Player.transform.TransformDirection(args.Direction) * Time.deltaTime
                                              * this.LevelSettings.PlayerSpeed;
        }
Beispiel #2
0
 public void OnMovementInput(object sender, MovementInputEventArgs args)
 {
     var handler = this.MovementInput;
     if (handler != null)
     {
         handler(sender, args);
     }
 }