using UnityEngine; public class Stick : MonoBehaviour { // Start is called before the first frame update void Update() { Vector3 vec = new Vector3(Input.GetAxis("Horizontal"),0 ,Input.GetAxis("Vertical") ); transform.Translate(vec); } }