示例#1
0
 public void Add(EventCallbackFunctorBase item)
 {
     this.m_List.Add(item);
     if (item.phase == CallbackPhase.CaptureAndTarget)
     {
         this.capturingCallbackCount++;
     }
     else if (item.phase == CallbackPhase.TargetAndBubbleUp)
     {
         this.bubblingCallbackCount++;
     }
 }
示例#2
0
        public void Add(EventCallbackFunctorBase item)
        {
            m_List.Add(item);

            if (item.phase == CallbackPhase.TrickleDownAndTarget)
            {
                trickleDownCallbackCount++;
            }
            else if (item.phase == CallbackPhase.TargetAndBubbleUp)
            {
                bubbleUpCallbackCount++;
            }
        }