public void Add(EventCallbackFunctorBase item) { m_List.Add(item); if (item.phase == CallbackPhase.TrickleDownAndTarget) { trickleDownCallbackCount++; } else if (item.phase == CallbackPhase.TargetAndBubbleUp) { bubbleUpCallbackCount++; } }
public void Add(EventCallbackFunctorBase item) { this.m_List.Add(item); bool flag = item.phase == CallbackPhase.TrickleDownAndTarget; if (flag) { int num = this.trickleDownCallbackCount; this.trickleDownCallbackCount = num + 1; } else { bool flag2 = item.phase == CallbackPhase.TargetAndBubbleUp; if (flag2) { int num = this.bubbleUpCallbackCount; this.bubbleUpCallbackCount = num + 1; } } }