예제 #1
0
        public CUpdatableDelegateClass(CUpdatableDelegate del)
        {
            if (del == null)
            {
                throw new NullReferenceException("Delegate is null");
            }

            m_delegate = del;
        }
예제 #2
0
 public void Remove(CUpdatableDelegate del)
 {
     for (int i = list.Count - 1; i >= 0; --i)
     {
         CUpdatableDelegateClass delegateClass = list[i] as CUpdatableDelegateClass;
         if (delegateClass != null && delegateClass.Delegate == del)
         {
             RemoveAt(i);
         }
     }
 }
예제 #3
0
 protected void RemoveUpdatable(CUpdatableDelegate updatable)
 {
     m_updatables.Remove(updatable);
 }
예제 #4
0
 public void Add(CUpdatableDelegate del)
 {
     Add(new CUpdatableDelegateClass(del));
 }
예제 #5
0
 protected void AddUpdatable(CUpdatableDelegate updatable)
 {
     m_updatables.Add(updatable);
 }