Esempio n. 1
0
    static int ModifyMesh(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIGradient), typeof(UnityEngine.Mesh)))
            {
                UIGradient       obj  = (UIGradient)ToLua.ToObject(L, 1);
                UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.ToObject(L, 2);
                obj.ModifyMesh(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIGradient), typeof(UnityEngine.UI.VertexHelper)))
            {
                UIGradient obj = (UIGradient)ToLua.ToObject(L, 1);
                UnityEngine.UI.VertexHelper arg0 = (UnityEngine.UI.VertexHelper)ToLua.ToObject(L, 2);
                obj.ModifyMesh(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIGradient.ModifyMesh"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 2
0
 static public int ModifyMesh(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.UI.VertexHelper)))
         {
             UIGradient self = (UIGradient)checkSelf(l);
             UnityEngine.UI.VertexHelper a1;
             checkType(l, 2, out a1);
             self.ModifyMesh(a1);
             return(0);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Mesh)))
         {
             UIGradient       self = (UIGradient)checkSelf(l);
             UnityEngine.Mesh a1;
             checkType(l, 2, out a1);
             self.ModifyMesh(a1);
             return(0);
         }
         return(error(l, "No matched override function to call"));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }