private void Update() { if (InputMobile.instance != null) // TEMP HACK! { InputMobile.instance.GetTouch(); } // Check axes of inputsystem inputHorizontal = inputSystem.GetAxis(GameAction.MOVE_HORIZONTAL); inputVertical = inputSystem.GetAxis(GameAction.JUMP); //CHECK FOR INPUT inputSystem.CheckInput(); // Time starts counting when player ducks time += Time.deltaTime; }