Ejemplo n.º 1
0
    public void CreateComponentSettings()
    {
        _componentSettings = new List<MAComponentPatch>();

        var components = GameObj.GetComponents(typeof(Component));

        foreach (var c in components) {
            var setting = new MAComponentPatch(c);

            if (c == null) {
                continue;
            }

            if (IgnoredComponentNames.Contains(";" + setting.ComponentName + ";")) {
                continue;
            }

            _componentSettings.Add(setting);
        }
    }
Ejemplo n.º 2
0
    public void CreateComponentSettings()
    {
        _componentSettings = new List <MAComponentPatch>();

        var components = GameObj.GetComponents(typeof(Component));

        foreach (var c in components)
        {
            var setting = new MAComponentPatch(c);

            if (c == null)
            {
                continue;
            }

            if (IgnoredComponentNames.Contains(";" + setting.ComponentName + ";"))
            {
                continue;
            }

            _componentSettings.Add(setting);
        }
    }