Пример #1
0
 private new void OnDisable()
 {
     base.OnDisable();
     IPluginImporterExtension[] additionalExtensions = this.additionalExtensions;
     for (int i = 0; i < additionalExtensions.Length; i++)
     {
         IPluginImporterExtension pluginImporterExtension = additionalExtensions[i];
         pluginImporterExtension.OnDisable(this);
     }
     foreach (BuildTarget current in PluginImporterInspector.GetValidBuildTargets())
     {
         IPluginImporterExtension pluginImporterExtension2 = ModuleManager.GetPluginImporterExtension(current);
         if (pluginImporterExtension2 != null)
         {
             pluginImporterExtension2.OnDisable(this);
         }
     }
 }
 private void OnDisable()
 {
     base.OnDisable();
     if (this.IsEditingPlatformSettingsSupported())
     {
         foreach (IPluginImporterExtension extension in this.additionalExtensions)
         {
             extension.OnDisable(this);
         }
         foreach (BuildTarget target in GetValidBuildTargets())
         {
             IPluginImporterExtension pluginImporterExtension = ModuleManager.GetPluginImporterExtension(target);
             if (pluginImporterExtension != null)
             {
                 pluginImporterExtension.OnDisable(this);
             }
         }
     }
 }
Пример #3
0
        public override void OnDisable()
        {
            base.OnDisable();

            if (!IsEditingPlatformSettingsSupported())
            {
                return;
            }

            foreach (var extension in additionalExtensions)
            {
                extension.OnDisable(this);
            }

            foreach (BuildTarget platform in GetValidBuildTargets())
            {
                IPluginImporterExtension extension = ModuleManager.GetPluginImporterExtension(platform);
                if (extension != null)
                {
                    extension.OnDisable(this);
                }
            }
        }
Пример #4
0
 private new void OnDisable()
 {
     base.OnDisable();
     if (!this.IsEditingPlatformSettingsSupported())
     {
         return;
     }
     foreach (IPluginImporterExtension additionalExtension in this.additionalExtensions)
     {
         additionalExtension.OnDisable(this);
     }
     using (List <BuildTarget> .Enumerator enumerator = PluginImporterInspector.GetValidBuildTargets().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             IPluginImporterExtension importerExtension = ModuleManager.GetPluginImporterExtension(enumerator.Current);
             if (importerExtension != null)
             {
                 importerExtension.OnDisable(this);
             }
         }
     }
 }