Ejemplo n.º 1
0
 static int LoadMaterial(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         GameResFactory       obj  = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory));
         UnityEngine.UI.Image arg0 = (UnityEngine.UI.Image)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.UI.Image));
         string arg1 = ToLua.CheckString(L, 3);
         obj.LoadMaterial(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }