public void SendLogout(WebRequestLogout request) { WebPacketQueue webPacket = new WebPacketQueue(request); webPacket.AddField("order", "login"); webPacket.AddField("name", "logout"); webPacket.AddField("pid", request.Pid); Send(webPacket); }
public override void Exit() { string pid = GameManager.Instance.MyPlayer.pid; WebRequestLogout request = new WebRequestLogout(pid, null); NetworkManager.Web.SendLogout(request); FlowManager.Instance.BackToFlow(); base.Exit(); }