Example #1
0
    static int AddClick(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 3 && LuaScriptMgr.CheckTypes(L, 1, typeof(SimpleFramework.LuaBehaviour), typeof(string), typeof(LuaInterface.LuaFunction)))
        {
            SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
            string      arg0 = LuaScriptMgr.GetString(L, 2);
            LuaFunction arg1 = LuaScriptMgr.ToLuaFunction(L, 3);
            obj.AddClick(arg0, arg1);
            return(0);
        }
        else if (count == 3 && LuaScriptMgr.CheckTypes(L, 1, typeof(SimpleFramework.LuaBehaviour), typeof(GameObject), typeof(LuaInterface.LuaFunction)))
        {
            SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
            GameObject  arg0 = (GameObject)LuaScriptMgr.GetLuaObject(L, 2);
            LuaFunction arg1 = LuaScriptMgr.ToLuaFunction(L, 3);
            obj.AddClick(arg0, arg1);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.LuaBehaviour.AddClick");
        }

        return(0);
    }
Example #2
0
    static int AddClick(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
        GameObject  arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
        LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);

        obj.AddClick(arg0, arg1);
        return(0);
    }
Example #3
0
    static int AddClick(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 3)
        {
            SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
            GameObject  arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
            LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);
            obj.AddClick(arg0, arg1);
            return(0);
        }
        else if (count == 4)
        {
            SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
            GameObject  arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
            LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);
            LuaTable    arg2 = LuaScriptMgr.GetLuaTable(L, 4);
            obj.AddClick(arg0, arg1, arg2);
            return(0);
        }
        else if (count == 5)
        {
            SimpleFramework.LuaBehaviour obj = (SimpleFramework.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LuaBehaviour");
            GameObject  arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
            LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);
            LuaTable    arg2 = LuaScriptMgr.GetLuaTable(L, 4);
            LuaTable    arg3 = LuaScriptMgr.GetLuaTable(L, 5);
            obj.AddClick(arg0, arg1, arg2, arg3);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.LuaBehaviour.AddClick");
        }

        return(0);
    }