public void Dispose() { if (delayedInitialize != null) { delayedInitialize.Dispose(); delayedInitialize = null; } }
private static void Initialize() { marker = new LabelAndHideFlagProtectionMarker(); setReprotectModeAfterEditorUpdate = new EditorDelayedAction(SetReprotectMode, 0, false); UnityAssetDuplicationEvent.OnAssetWillDuplicate += OnAssetWillDuplicate; UnityAssetPostProcessEvent.OnImportedPostProcess += OnAssetsImported; UnityAssetModificationEvent.AddSaveHandler(OnWillSaveAssets); UnityAssetModificationEvent.AddDeleteHandler(OnWillDeleteAsset); UnityAssetModificationEvent.AddMoveHandler(OnWillMoveAsset); }
public LabelAndHideFlagProtectionMarker() { delayedInitialize = new EditorDelayedAction(DelayedInitialize, 0); delayedInitialize.Reserve(); }