Example #1
0
    public void DisconnectPlayerFromServer()
    {
        networkClient.Disconnect();

        ClearClientState();
        playersManager.ClearState();
        roomsManager.ClearState();

        if (isServerStarted)
        {
            StopServer();
        }
    }