void LateUpdate() { if (!isGameStarted) { return; } #if !UNITY_IOS && !UNITY_ANDROID float horizontal = Input.GetAxis("Horizontal"); characterController.ChangeSpeed(horizontal); #endif if (cameraPivot.rotation != characterController.transform.rotation) { RotateCharacter(); } }