FairyGUI.EventListener.RemoveCapture C# (CSharp) Method

RemoveCapture() public method

public RemoveCapture ( EventCallback1 callback ) : void
callback EventCallback1
return void
        public void RemoveCapture(EventCallback1 callback)
        {
            if (_bridge == null)
                _bridge = this.owner.GetEventBridge(_type);

            _bridge.RemoveCapture(callback);
        }

Usage Example

    static int RemoveCapture(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            FairyGUI.EventListener  obj  = (FairyGUI.EventListener)ToLua.CheckObject(L, 1, typeof(FairyGUI.EventListener));
            FairyGUI.EventCallback1 arg0 = null;
            LuaTypes funcType2           = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (FairyGUI.EventCallback1)ToLua.CheckObject(L, 2, typeof(FairyGUI.EventCallback1));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(FairyGUI.EventCallback1), func) as FairyGUI.EventCallback1;
            }

            obj.RemoveCapture(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.EventListener::RemoveCapture