
I have a top down game where I want the character to move in 8 directions. I have written the following script to move the character (_this is called from my Update function): void Move_VelocityForwardStrategy() { Vector3 direction = Vector3.zero; float horizInput = Input.GetAxis(“Horizontal”); float vertInput = Input.GetAxis(“Vertical”); if (horizInput > 0) { direction …