示例#1
0
        public override void Init()
        {
            this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled);

            this.enabledText       = EditorPrefs.GetBool(FormKey("enabledText"), this.enabledText);
            this.textColorUntagged = HierarchyUtil.GetColor(FormKey("textColorUntagged"), this.textColorUntagged);
            this.textColor         = HierarchyUtil.GetColor(FormKey("textColor"), this.textColor);

            this.enabledItem     = EditorPrefs.GetBool(FormKey("enabledItem"), this.enabledItem);
            this.itemColors      = HierarchyUtil.GetDictionary(FormKey("itemColors"), this.itemColors);
            this.gradientLength  = HierarchyUtil.GetData(FormKey("gradientLength"), this.gradientLength);
            this.invertDirection = HierarchyUtil.GetData(FormKey("invertDirection"), this.invertDirection);
        }
示例#2
0
        public override void Init()
        {
            // Here emphasize we want this to be disabled by default!
            {
                this.enabled = false;
            }

            this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled);

            this.enabledText      = EditorPrefs.GetBool(FormKey("enabledText"), this.enabledText);
            this.textColorDefault = HierarchyUtil.GetColor(FormKey("textColorDefault"), this.textColorDefault);
            this.textColor        = HierarchyUtil.GetColor(FormKey("textColor"), this.textColor);

            this.enabledItem     = EditorPrefs.GetBool(FormKey("enabledItem"), this.enabledItem);
            this.itemColors      = HierarchyUtil.GetDictionary(FormKey("itemColors"), this.itemColors);
            this.gradientLength  = HierarchyUtil.GetData(FormKey("gradientLength"), this.gradientLength);
            this.invertDirection = HierarchyUtil.GetData(FormKey("invertDirection"), this.invertDirection);
        }