//When we close the game send the server our disconnect notice private void OnApplicationQuit() { PlayerManagementPacketSender.SendDisconnectNotice(); }