static int AddClick(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); BaseLua obj = LuaScriptMgr.GetUnityObject <BaseLua>(L, 1); string arg0 = LuaScriptMgr.GetLuaString(L, 2); obj.AddClick(arg0); return(0); }
static int AddClick(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); BaseLua obj = (BaseLua)LuaScriptMgr.GetUnityObjectSelf(L, 1, "BaseLua"); string arg0 = LuaScriptMgr.GetLuaString(L, 2); LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3); obj.AddClick(arg0, arg1); return(0); }