2 using System.Collections.Generic;
4 namespace HKI.Core.Containers
16 List<T> items =
new List<T>();
19 public List<T> Items {
get {
return items; } }
20 public int Count {
get {
return items.Count; } }
23 public void Add(T item)
25 if(item != null && !items.Contains(item))
28 if(OnValueChanged != null)
38 if(OnValueChanged != null)
45 if(index >= 0 && index < items.Count)
47 items.RemoveAt(index);
48 if (OnValueChanged != null)
System.Action OnValueChanged
Generic container to store data of a type T in a ScriptableObject
void RemoveByIndex(int index)