using System; using System.Collections.Generic; namespace PrefabEvolution { [Serializable] public class ExposedPropertyGroup : BaseExposedData { public static Dictionary expandedDict = new Dictionary(); private bool expandedLoaded; private bool expanded = true; public bool Expanded { get { if (!expandedLoaded) { expandedDict.TryGetValue(base.Id, out expanded); expandedLoaded = true; } return expanded; } set { if (value != expanded) { if (!expandedDict.ContainsKey(base.Id)) { expandedDict.Add(base.Id, true); } expandedDict[base.Id] = value; expanded = value; } } } } }