Exemplo n.º 1
0
    static int ShowReduceTips(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                Framework.TipsManager obj = (Framework.TipsManager)ToLua.CheckObject <Framework.TipsManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3);
                obj.ShowReduceTips(arg0, arg1);
                return(0);
            }
            else if (count == 4)
            {
                Framework.TipsManager obj = (Framework.TipsManager)ToLua.CheckObject <Framework.TipsManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3);
                float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
                obj.ShowReduceTips(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Framework.TipsManager.ShowReduceTips"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
 static int OnInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.TipsManager obj = (Framework.TipsManager)ToLua.CheckObject <Framework.TipsManager>(L, 1);
         obj.OnInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetTipsManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         Framework.TipsManager o = Framework.Utility.LuaHelper.GetTipsManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
    static int get_TipsCanvas(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.TipsManager obj = (Framework.TipsManager)o;
            UnityEngine.Transform ret = obj.TipsCanvas;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index TipsCanvas on a nil value"));
        }
    }