// Update is called once per frame void Update() { bool inputHorizontal = Input.GetButtonDown("Horizontal"); if (Input.GetButtonDown("Horizontal")) { if (Input.GetAxis("Horizontal") > 0) { // Droit green.GetInput(); } else { // Gauche red.GetInput(); } } if (Input.GetButtonDown("Vertical")) { if (Input.GetAxis("Vertical") > 0) { // Haut blue.GetInput(); } else { // Bas yellow.GetInput(); } } }