Ejemplo n.º 1
0
 static public int Select(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.Color)))
         {
             UIColorPicker     self = (UIColorPicker)checkSelf(l);
             UnityEngine.Color a1;
             checkType(l, 2, out a1);
             var ret = self.Select(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector2)))
         {
             UIColorPicker       self = (UIColorPicker)checkSelf(l);
             UnityEngine.Vector2 a1;
             checkType(l, 2, out a1);
             self.Select(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }