// Update is called once per frame void FixedUpdate() { if (!isLocalPlayer) { return; } GetPlayerInput(); movementScript.RotateTankTurret(_mousePosition); movementScript.MovePlayer(Mathf.Abs(_verticalInput)); if (_horizontalInput != 0) { movementScript.RotateTankBody(_horizontalInput); } }
void Update() { GetPlayerInput(); movementScript.RotateTankTurret(_mousePosition); }