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

            if (count == 3)
            {
                UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 1);
                string arg0             = ToLua.CheckString(L, 2);
                float  arg1             = (float)LuaDLL.luaL_checknumber(L, 3);
                DG.Tweening.Core.TweenerCore <string, string, DG.Tweening.Plugins.Options.StringOptions> o = obj.DOText(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 4)
            {
                UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 1);
                string arg0             = ToLua.CheckString(L, 2);
                float  arg1             = (float)LuaDLL.luaL_checknumber(L, 3);
                bool   arg2             = LuaDLL.luaL_checkboolean(L, 4);
                DG.Tweening.Core.TweenerCore <string, string, DG.Tweening.Plugins.Options.StringOptions> o = obj.DOText(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 5)
            {
                UnityEngine.UI.Text obj       = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 1);
                string arg0                   = ToLua.CheckString(L, 2);
                float  arg1                   = (float)LuaDLL.luaL_checknumber(L, 3);
                bool   arg2                   = LuaDLL.luaL_checkboolean(L, 4);
                DG.Tweening.ScrambleMode arg3 = (DG.Tweening.ScrambleMode)ToLua.CheckObject(L, 5, typeof(DG.Tweening.ScrambleMode));
                DG.Tweening.Core.TweenerCore <string, string, DG.Tweening.Plugins.Options.StringOptions> o = obj.DOText(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 6)
            {
                UnityEngine.UI.Text obj       = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 1);
                string arg0                   = ToLua.CheckString(L, 2);
                float  arg1                   = (float)LuaDLL.luaL_checknumber(L, 3);
                bool   arg2                   = LuaDLL.luaL_checkboolean(L, 4);
                DG.Tweening.ScrambleMode arg3 = (DG.Tweening.ScrambleMode)ToLua.CheckObject(L, 5, typeof(DG.Tweening.ScrambleMode));
                string arg4                   = ToLua.CheckString(L, 6);
                DG.Tweening.Core.TweenerCore <string, string, DG.Tweening.Plugins.Options.StringOptions> o = obj.DOText(arg0, arg1, arg2, arg3, arg4);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.UI.Text.DOText"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int DOText(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 6);
         UnityEngine.UI.Text obj       = (UnityEngine.UI.Text)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.Text));
         string arg0                   = ToLua.CheckString(L, 2);
         float  arg1                   = (float)LuaDLL.luaL_checknumber(L, 3);
         bool   arg2                   = LuaDLL.luaL_checkboolean(L, 4);
         DG.Tweening.ScrambleMode arg3 = (DG.Tweening.ScrambleMode)ToLua.CheckObject(L, 5, typeof(DG.Tweening.ScrambleMode));
         string arg4                   = ToLua.CheckString(L, 6);
         DG.Tweening.Tweener o         = obj.DOText(arg0, arg1, arg2, arg3, arg4);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }