static int AddClick(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.LuaComponent         obj  = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1);
         UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2);
         obj.AddClick(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
    static int AddClick(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaComponent.AddClick");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.LuaComponent         obj  = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1);
            UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2);
            obj.AddClick(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }