static int get_newWork(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkManagerV2 obj = (NetworkManagerV2)o; SelfNetwork ret = obj.newWork; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index newWork on a nil value" : e.Message)); } }
static int set_newWork(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkManagerV2 obj = (NetworkManagerV2)o; SelfNetwork arg0 = (SelfNetwork)ToLua.CheckObject(L, 2, typeof(SelfNetwork)); obj.newWork = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index newWork on a nil value" : e.Message)); } }
void Awake() { this.newWork = new SelfNetwork(); this.newWork.OnRegister(); }