private void FixedUpdate() { if (PhotonNetwork.IsConnected && !photonView.IsMine) { return; } #region On-screen jumping //Onscreen input if (controllerListener != null) { if (controllerListener.GetJumpDown()) { jump = true; } } #endregion //Move player controller.Move(horizontalMove * Time.fixedDeltaTime, false, jump); jump = false; }