void FixedUpdate() { SpeedFactor = Input.GetAxis("Horizontal"); //------------------------------------------ if (SpeedFactor > 0) { BasicMovement.LookLeft(); } else if (SpeedFactor < 0) { BasicMovement.LookRight(); } //------------------------------------------ if (Input.GetAxis("Aim") > 0.5f) { } VerticalVelocity = Rigidbody2D.velocity.y; if (Mathf.Abs(SpeedFactor) > 0.2f) { BasicMovement.Walk(SpeedFactor); } IsJumping = Input.GetAxis("Jump") == 1.0f; }