public void UsePowerup(int usedPowerup)
    {
        switch (powerups[usedPowerup])
        {
        case Powerups.Dash:
            dash.Use();
            playerUI.SetDriveText(usedPowerup, powerupNames[0]);
            powerups[usedPowerup] = Powerups.None;
            break;

        case Powerups.Zhonya:
            zhonya.Use();
            playerUI.SetDriveText(usedPowerup, powerupNames[0]);
            powerups[usedPowerup] = Powerups.None;
            break;

        case Powerups.Freeze:
            freeze.Use();
            playerUI.SetDriveText(usedPowerup, powerupNames[0]);
            powerups[usedPowerup] = Powerups.None;
            break;

        default:
            break;
        }
    }