예제 #1
0
        public void Add(PrefabAttribute attribute)
        {
            List <PrefabAttribute> prefabAttributeList = this.Find(attribute.GetIndexedType());

            Assert.IsTrue(!prefabAttributeList.Contains(attribute), "AttributeCollection.Add: Adding twice to list");
            prefabAttributeList.Add(attribute);
            this.cache = (Dictionary <System.Type, object>)null;
        }
        public void Add(PrefabAttribute attribute)
        {
            List <PrefabAttribute> prefabAttributes = this.Find(attribute.GetIndexedType());

            Assert.IsTrue(!prefabAttributes.Contains(attribute), "AttributeCollection.Add: Adding twice to list");
            prefabAttributes.Add(attribute);
            this.cache = null;
        }