I was thinking about writing a custom Input Manager to allow key remapping at runtime but I
decided that it would be a lot of struggle. So, instead, I need to make character move left or right without Input.getAxis. Can someone help me with this? I need the same behaviour like with Input.GetAxis but I need to only use Input.GetKey/Down/Up. Something like this:
// rb is a rigidbody ;
rb.velocity = new Vector2(move * maxSpeed, rb.velocity.y) ;
// move must be a value between -1 and 1
// maxSpeed is 2f in my case
Please! I’ve been stuck with letting the player set custom controls for days!!