コード例 #1
0
    static int GotoWaypoint(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                obj.GotoWaypoint(arg0);
                return(0);
            }
            else if (count == 3)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                int  arg0             = (int)LuaDLL.luaL_checknumber(L, 2);
                bool arg1             = LuaDLL.luaL_checkboolean(L, 3);
                obj.GotoWaypoint(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.GotoWaypoint"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #2
0
    static int GotoWaypoint(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        int  arg0             = (int)LuaScriptMgr.GetNumber(L, 2);
        bool arg1             = LuaScriptMgr.GetBoolean(L, 3);

        obj.GotoWaypoint(arg0, arg1);
        return(0);
    }
コード例 #3
0
 static int GotoWaypoint(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Tween));
         int  arg0             = (int)LuaDLL.luaL_checknumber(L, 2);
         bool arg1             = LuaDLL.luaL_checkboolean(L, 3);
         obj.GotoWaypoint(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }