public void DisconnectPlayerFromServer() { networkClient.Disconnect(); ClearClientState(); playersManager.ClearState(); roomsManager.ClearState(); if (isServerStarted) { StopServer(); } }