private void Update() { if (NInput.TouchBegan()) { Joystick.SetPivot(); PlayerPos = Rb.position; Input = true; } CarManager.CountFlips(); if (NInput.TouchEnded()) { Input = false; } UIManager.Progress(transform.position.z / LevelGenerator.path.end.z); }