static int get_onKey(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.KeyCodeDelegate ret = obj.onKey; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onKey on a nil value")); } }
static int set_onKey(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.KeyCodeDelegate arg0 = (UGUIEventListener.KeyCodeDelegate)ToLua.CheckDelegate <UGUIEventListener.KeyCodeDelegate>(L, 2); obj.onKey = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onKey on a nil value")); } }