How do I make my character to walk without using buttons?

I add my character into my scene and I animated it in unity because it was just 3 pictures but I want it to walk by him self not to be controlled by the person that play it but I don’t know what I have to do.

PLEASE HELP ME…

You got to create an animation and put it in loop mode,then create an animator controller and it will be only animation in the mecanim so it will run on loop. No buttons required or lets just say no input will be required.

Is your target platform android or pc? You can use CrossPlatformInput and place a joystick on the screen for any of the platforms or you can use accelerometer for android.