// Update is called once per frame
    void Update()
    {
        bool isFlying = playerMovement.getFlyFlag();

        if (isFlying)
        {
            Score -= Time.deltaTime * FlyDrainPerSecond;
        }
        if (Score <= 100)
        {
            Score += Time.deltaTime * RegenPerSecond;
        }
        else
        {
            Score -= Time.deltaTime * DrainPerSecond;
        }

        ScoreDisplay.text = Math.Floor(Score).ToString();
    }