// Update is called once per frame void LateUpdate() { if (!PauseMenu.paused && Elemental.Alive) { if (XInput.GetConnected(0)) { leftStick = XInput.GetLeftStick(0); Move(leftStick.xAxis, leftStick.yAxis); } else { float moveX = Input.GetAxis("Horizontal"); float moveY = Input.GetAxis("Vertical"); Move(moveX, moveY); } } }