public class PlayerController : MonoBehaviour
{
public float SpeedX;
public float SpeedY;
private void FixedUpdate()
{
float moveHorizontal= Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
if (HorizontalMove > 0)
sprt.flipX = false;
else if (HorizontalMove < 0)
sprt.flipX = true;
rb.velocity = new Vector2(moveHorizontal *
SpeedX, moveVertical * SpeedX);
}
}