Exemplo n.º 1
0
 // 相同的函数只能增加一次
 virtual public void addEventHandle(Action<IDispatchObject> handle)
 {
     EventDispatchFunctionObject funcObject = new EventDispatchFunctionObject();
     funcObject.m_handle = handle;
     if (null != handle)
     {
         addObject(funcObject);
     }
     else
     {
         Ctx.m_instance.m_logSys.log("Event Handle is null");
     }
 }
Exemplo n.º 2
0
        // 相同的函数只能增加一次
        virtual public void addEventHandle(Action <IDispatchObject> handle)
        {
            EventDispatchFunctionObject funcObject = new EventDispatchFunctionObject();

            funcObject.m_handle = handle;
            if (null != handle)
            {
                addObject(funcObject);
            }
            else
            {
                Ctx.m_instance.m_logSys.log("Event Handle is null");
            }
        }