internal void Cleanup() { if (cleanup) { cleanup = false; OnCleanup?.Invoke(); } }
public void CleanReferences() { OnCleanup?.Invoke(); meshRootGameObjectValue = null; currentShape = null; renderers = null; colliders.Clear(); }
/// <summary> /// Destroy all objects created by this SLUIManager.. /// </summary> public void Cleanup() { // clear files? // _luaFiles.Clear(); // _workingFiles.Clear(); Worker?.ClearWorker(); OnCleanup?.Invoke(); }
public void Cleanup() { OnCleanup?.Invoke(); Sorter.CASC = null; _root = null; if (_casc != null) { _casc.Clear(); _casc = null; } }
public void Cleanup() { Sorter.CASC = null; _currentFolder = null; _root = null; _displayedEntries?.Clear(); _displayedEntries = null; _casc?.Clear(); _casc = null; OnCleanup?.Invoke(); }
public void ChangeLocale(string locale) { if (_casc == null) { return; } OnCleanup?.Invoke(); Settings.Default.LocaleFlags = (LocaleFlags)Enum.Parse(typeof(LocaleFlags), locale); _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.ContentFlags); _casc.Root.MergeInstall(_casc.Install); OnStorageChanged?.Invoke(); }
public void SetOverrideArchive(bool set) { if (_casc == null) { return; } OnCleanup?.Invoke(); Settings.Default.OverrideArchive = set; _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.OverrideArchive); _casc.Root.MergeInstall(_casc.Install); OnStorageChanged?.Invoke(); }
public override void Cleanup() { OnCleanup?.Invoke(); processor?.DisposeGif(); if (frames is null) { return; } for (int i = 0; i < frames.Length; i++) { Object.Destroy(frames[i].texture); } frames = null; }
public void ChangeContentFlags(bool set) { if (_casc == null) { return; } OnCleanup?.Invoke(); if (set) { Settings.Default.ContentFlags |= ContentFlags.LowViolence; } else { Settings.Default.ContentFlags &= ~ContentFlags.LowViolence; } _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.ContentFlags); _casc.Root.MergeInstall(_casc.Install); OnStorageChanged?.Invoke(); }
public override void Cleanup() { OnCleanup?.Invoke(); PersistentAssetCache.RemoveImage(texture); Object.Destroy(texture); }
void CeBackupServerManager_OnCleanup(string SrcPath, string DstPath, int Deleted) { Logger.Info(string.Format("WCFCeBackupService::OnCleanup() {0} - {1} Deleted={2}", SrcPath, DstPath, Deleted)); OnCleanup?.Invoke(SrcPath, DstPath, Deleted); }