private void OnDestroy() { if (ClientStage.active) { ClientStage.DisconnectClient(); } if (ServerStage.active) { ServerStage.Disconnect(); } }
public void DisconnectClient() { if (!ClientStage.active) { return; } ClientStage.DisconnectClient(); startServerButton.SetActive(true); startClientButton.SetActive(true); clientUI.SetActive(false); }