Ejemplo n.º 1
0
        public override bool HasModified()
        {
            bool modified = m_HasModified || base.HasModified();

            if (!IsEditingPlatformSettingsSupported())
            {
                return(modified);
            }

            foreach (var extension in additionalExtensions)
            {
                modified |= extension.HasModified(this);
            }

            foreach (BuildTarget platform in GetValidBuildTargets())
            {
                IPluginImporterExtension extension = ModuleManager.GetPluginImporterExtension(platform);
                if (extension != null)
                {
                    modified |= extension.HasModified(this);
                }
            }

            return(modified);
        }
Ejemplo n.º 2
0
        internal override bool HasModified()
        {
            bool flag = this.m_HasModified || base.HasModified();

            if (!this.IsEditingPlatformSettingsSupported())
            {
                return(flag);
            }
            foreach (IPluginImporterExtension additionalExtension in this.additionalExtensions)
            {
                flag |= additionalExtension.HasModified(this);
            }
            using (List <BuildTarget> .Enumerator enumerator = PluginImporterInspector.GetValidBuildTargets().GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    IPluginImporterExtension importerExtension = ModuleManager.GetPluginImporterExtension(enumerator.Current);
                    if (importerExtension != null)
                    {
                        flag |= importerExtension.HasModified(this);
                    }
                }
            }
            return(flag);
        }
Ejemplo n.º 3
0
        internal override bool HasModified()
        {
            bool flag = this.m_HasModified || base.HasModified();
            bool result;

            if (!this.IsEditingPlatformSettingsSupported())
            {
                result = flag;
            }
            else
            {
                IPluginImporterExtension[] additionalExtensions = this.additionalExtensions;
                for (int i = 0; i < additionalExtensions.Length; i++)
                {
                    IPluginImporterExtension pluginImporterExtension = additionalExtensions[i];
                    flag |= pluginImporterExtension.HasModified(this);
                }
                foreach (BuildTarget current in PluginImporterInspector.GetValidBuildTargets())
                {
                    IPluginImporterExtension pluginImporterExtension2 = ModuleManager.GetPluginImporterExtension(current);
                    if (pluginImporterExtension2 != null)
                    {
                        flag |= pluginImporterExtension2.HasModified(this);
                    }
                }
                result = flag;
            }
            return(result);
        }
Ejemplo n.º 4
0
        internal override bool HasModified()
        {
            bool flag = this.hasModified || base.HasModified();

            IPluginImporterExtension[] additionalExtensions = this.additionalExtensions;
            for (int i = 0; i < additionalExtensions.Length; i++)
            {
                IPluginImporterExtension pluginImporterExtension = additionalExtensions[i];
                flag |= pluginImporterExtension.HasModified(this);
            }
            foreach (BuildTarget current in PluginImporterInspector.GetValidBuildTargets())
            {
                IPluginImporterExtension pluginImporterExtension2 = ModuleManager.GetPluginImporterExtension(current);
                if (pluginImporterExtension2 != null)
                {
                    flag |= pluginImporterExtension2.HasModified(this);
                }
            }
            return(flag);
        }
Ejemplo n.º 5
0
        internal override bool HasModified()
        {
            bool flag = this.m_HasModified || base.HasModified();

            if (this.IsEditingPlatformSettingsSupported())
            {
                foreach (IPluginImporterExtension extension in this.additionalExtensions)
                {
                    flag |= extension.HasModified(this);
                }
                foreach (BuildTarget target in GetValidBuildTargets())
                {
                    IPluginImporterExtension pluginImporterExtension = ModuleManager.GetPluginImporterExtension(target);
                    if (pluginImporterExtension != null)
                    {
                        flag |= pluginImporterExtension.HasModified(this);
                    }
                }
            }
            return(flag);
        }