virtual public void delObject(IDelayHandleItem delayObject) { if (m_loopDepth > 0) { if (!existDelList(delayObject)) { if (existAddList(delayObject)) // 如果已经添加到删除列表中 { delFromDelayAddList(delayObject); } delayObject.setClientDispose(); DelayHandleObject delayHandleObject = new DelayHandleObject(); delayHandleObject.m_delayParam = new DelayDelParam(); m_deferredDelQueue.Add(delayHandleObject); delayHandleObject.m_delayObject = delayObject; } } }
virtual public void delObject(IDelayHandleItem delayObject) { if (m_loopDepth > 0) { if (!existDelList(delayObject)) { if (existAddList(delayObject)) // 如果已经添加到删除列表中 { delFromDelayAddList(delayObject); } delayObject.setClientDispose(); DelayHandleObject delayHandleObject = new DelayHandleObject(); delayHandleObject.m_delayParam = new DelayDelParam(); m_deferredDelQueue.Add(delayHandleObject); delayHandleObject.m_delayObject = delayObject; } } }
virtual public void addObject(IDelayHandleItem delayObject, float priority = 0.0f) { if (m_loopDepth > 0) { if (!existAddList(delayObject)) // 如果添加列表中没有 { if (existDelList(delayObject)) // 如果已经添加到删除列表中 { delFromDelayDelList(delayObject); } DelayHandleObject delayHandleObject = new DelayHandleObject(); delayHandleObject.m_delayParam = new DelayAddParam(); m_deferredAddQueue.Add(delayHandleObject); delayHandleObject.m_delayObject = delayObject; (delayHandleObject.m_delayParam as DelayAddParam).m_priority = priority; } } }
virtual public void addObject(IDelayHandleItem delayObject, float priority = 0.0f) { if (m_loopDepth > 0) { if (!existAddList(delayObject)) // 如果添加列表中没有 { if (existDelList(delayObject)) // 如果已经添加到删除列表中 { delFromDelayDelList(delayObject); } DelayHandleObject delayHandleObject = new DelayHandleObject(); delayHandleObject.m_delayParam = new DelayAddParam(); m_deferredAddQueue.Add(delayHandleObject); delayHandleObject.m_delayObject = delayObject; (delayHandleObject.m_delayParam as DelayAddParam).m_priority = priority; } } }