// Update is called once per frame void FixedUpdate() { movementScript.MovePlayer(Mathf.Abs(_verticalInput)); if (_horizontalInput != 0) { movementScript.RotateTankBody(_horizontalInput); } }
void FixedUpdate() { movementScript.MovePlayer(Mathf.Abs(_verticalInput)); if (_horizontalInput != 0) { movementScript.RotateTankBody(_horizontalInput); } //Vertical w jedną stronę, do przyjrzenia się potem }
// 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); } }