private void CleanupAndLoad(int n) { TcpSocket.CloseSocket(); Time.timeScale = 1f; Pause.GameIsPaused = false; SceneManager.LoadScene(n); }
private void DestroyCurrentSocket() { if (tcpSocket != null) { tcpSocket.CloseSocket(); tcpSocket = null; msgQueue.Clear(); } }
public void QuitGame() { TcpSocket.CloseSocket(); Application.Quit(); }