override protected void AddStatus(string pageId, string value) { string[] arr = value.Split(jointChar0); if (pageId == null) { _default.alpha = float.Parse(arr[0]); _default.rotation = float.Parse(arr[1]); _default.grayed = int.Parse(arr[2]) == 1; } else { _storage[pageId] = new GearLookValue(float.Parse(arr[0]), float.Parse(arr[1]), int.Parse(arr[2]) == 1); } }
protected override void Init() { _default = new GearLookValue(_owner.alpha, _owner.rotation, _owner.grayed); _storage = new Dictionary <string, GearLookValue>(); }