private void ToggleValueChanged(bool isOn) { string fileName = ((DepotDownloader.ProtoManifest.FileData)item).FileName; if (isOn) { SettingsController.AddPak(fileName); } else { SettingsController.RemovePak(fileName); } ResourcePacksPanel.resourcePacksPanelInScene.RecheckDownloadSize(); }