Esempio n. 1
0
    private static int DrawLine(IntPtr L)
    {
        int       count = LuaDLL.lua_gettop(L);
        const int nRet  = 0;

        if ((count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(LuaTable), typeof(LuaTable))))
        {
            var from = LuaScriptMgr.GetVector3(L, 1);
            var to   = LuaScriptMgr.GetVector3(L, 2);
            HobaDebuger.DrawLine(from, to, Color.red);
        }
        else
        {
            LogParamError("DrawLine", count);
        }

        return(CheckReturnNum(L, count, nRet));
    }