static int Stop(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TGNetService obj = (TGNetService)ToLua.CheckObject(L, 1, typeof(TGNetService)); obj.Stop(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static TGNetService NewInstance() { instance.Stop(); instance = new TGNetService(); return(instance); }