Пример #1
0
        public static bool Remove(T item, int mask)
        {
            var r1 = GlobalList <T> .Remove(item);

            var r2 = maskedLists[mask].Remove(item);

            return(r1 || r2);
        }
Пример #2
0
 public virtual void OnDisable()
 {
     GlobalList.RemoveReference(this);
 }
Пример #3
0
        public static void Add(T item, int mask)
        {
            GlobalList <T> .Add(item);

            maskedLists[mask].Add(item);
        }
Пример #4
0
 public virtual void OnEnable()
 {
     // While ineffecient, guarantees that you don't forget calling it.
     // Override this method if you don't want this functionality.
     GlobalList.AddReference(this);
 }