예제 #1
0
 static int Get(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.UIGroup             obj  = (UI.UIGroup)ToLua.CheckObject(L, 1, typeof(UI.UIGroup));
         int                    arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.GameObject o    = obj.Get(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }