private void Start() { netService = TGNetService.GetInstance(); //StartCoroutine(doJoystick()); //StartCoroutine(doScreenClick()); }
private void OnDestroy() { if (lua != null) { lua.Dispose(); lua = null; } TGNetService.GetInstance().Stop(); }
static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); TGNetService o = TGNetService.GetInstance(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }