static int GetComponent(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); System.Type arg1 = ToLua.CheckMonoType(L, 2); string arg2 = ToLua.CheckString(L, 3); UnityEngine.Component o = GameObjectUtil.GetComponent(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }