// ------------------------------------------------------------------------------- // RequestUserLogout // @Client // ------------------------------------------------------------------------------- protected override bool RequestUserLogout(NetworkConnection conn) { ClientMessageRequestUserLogout message = new ClientMessageRequestUserLogout { }; conn.Send(message); debug.LogFormat(this.name, nameof(RequestUserLogout), conn.Id(), userName); //DEBUG return(true); }
// ------------------------------------------------------------------------------- // OnClientMessageRequestUserLogout // @Client -> @Server // ------------------------------------------------------------------------------- void OnClientMessageRequestUserLogout(NetworkConnection conn, ClientMessageRequestUserLogout msg) { LogoutUser(conn); }