public void Dispose()
 {
     if (delayedInitialize != null)
     {
         delayedInitialize.Dispose();
         delayedInitialize = null;
     }
 }
示例#2
0
        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();
 }