コード例 #1
0
 static int QPYX_GetComponentWithPath_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         UnityEngine.GameObject QPYX_arg0_YXQP = (UnityEngine.GameObject)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.GameObject));
         string QPYX_arg1_YXQP             = ToLua.CheckString(L_YXQP, 2);
         string QPYX_arg2_YXQP             = ToLua.CheckString(L_YXQP, 3);
         UnityEngine.Component QPYX_o_YXQP = ComponentUtil.GetComponentWithPath(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
         ToLua.Push(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #2
0
 static int GetComponentWithPath(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject));
         string arg1             = ToLua.CheckString(L, 2);
         string arg2             = ToLua.CheckString(L, 3);
         UnityEngine.Component o = ComponentUtil.GetComponentWithPath(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }