Exemplo n.º 1
0
 static int GetButton(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBase obj              = (UIBase)ToLua.CheckObject(L, 1, typeof(UIBase));
         string arg0             = ToLua.CheckString(L, 2);
         UnityEngine.UI.Button o = obj.GetButton(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }