private void updateMovement() { //tempAxis left n right, keyboar axis left n right, or no input tempAxisKey = Input.GetAxis("MoveHorizontal"); tempAxisTouch = _MobileInput.GetAxis("MoveHorizontal"); if (tempAxisKey > 0 || tempAxisTouch > 0) { //CBUG.Log("Move axis: " + tempAxisTouch); moveLeft = 0; moveRight = tempAxisTouch > tempAxisKey ? tempAxisTouch : tempAxisKey; } else if (tempAxisKey < 0 || tempAxisTouch < 0) { moveLeft = tempAxisTouch < tempAxisKey ? tempAxisTouch : tempAxisKey; moveRight = 0; } else { moveLeft = 0; moveRight = 0; } }