private void Update() { // Do not setup input axes unless this photon view is mine // (You can also contorl the car if the network is not connected for debugging purposes) if (photonView.IsMine || !PhotonNetwork.IsConnected) { m_HorizontalAxis = Input.GetAxis("Horizontal"); m_VerticalAxis = Input.GetAxis("Vertical"); if (Input.GetButtonDown("Jump")) { m_MovementModule.TryStartBoost(); } if (Input.GetButton("Fire1")) { m_MovementModule.TryStartDrifting(m_HorizontalAxis); } if (Input.GetButtonUp("Fire1")) { m_MovementModule.FinishDrifting(); } } }