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); }
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); }