Exemplo n.º 1
0
 public NodeListConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute) : base(parent, field, attribute)
 {
     if (!ElementType.DerivesFrom(typeof(IConfigNode)))
     {
         throw new ArgumentException("The type " + ElementType.Name + " does not derive from IConfigNode");
     }
 }
Exemplo n.º 2
0
 protected void DestroyUnityObjects()
 {
     if (Attribute.destroy && ElementType.DerivesFrom(typeof(UnityEngine.Object)))
     {
         foreach (var item in List)
         {
             if (item.IsNotNull())
             {
                 UnityEngine.Object.Destroy((UnityEngine.Object)item);
             }
         }
     }
 }