예제 #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);
 }