Inputs WASD in Obstacle Tower

How can I edit the Input WASD keys in Obstacle Tower? Where is the Script for inputting the WASD keys in Obstacle Tower? I would like to add:

    float moveHorizontal = Input.GetAxis("Horizontal");
    float moveVertical = Input.GetAxis("Vertical");

to move the player in Obstacle Tower with moveHorizontal and moveVertical.

Hey,
If you are looking for code that detects inputs from a keyboard ,you can use

if (Input.GetKey(KeyCode.'KeyThatsBeingPressed')
{
      //Code to run when key pressed
}

‘KeyThatsBeingPressed’ can be something like “W” or “Space”, so for all code you want to run when W is pressed

if (Input.GetKey(KeyCode.W))
        {
            //code
        }

If I’ve understood your question correctly, you are trying to change WASD to some other input? To do that, you need to go into your player settings, then into the section called “Input”. Then locate the Horizontal input to change the input keys for that, and do the same for Vertical which should be right underneath that.
To get to that setting, you need to go to Edit > Player Settings > Input > Horizontal/Vertical

When there, simply replace w, a, s, and d with the keys you want to use instead.

I hope you found this helpful!

I want to know where in Obstacle Tower Script does the moving of the Agent resides? I want to write some code to move the Agent and then add it so the code moves the Agent.