Added comments as requested

This commit is contained in:
MrGadget1024 2023-11-27 09:37:45 -05:00
parent c621049080
commit b7bfee3a91

View File

@ -429,6 +429,8 @@ void SetupClient()
/// <summary>Starts the client, connects it to the server with networkAddress.</summary> /// <summary>Starts the client, connects it to the server with networkAddress.</summary>
public void StartClient() public void StartClient()
{ {
// Do checks and short circuits before setting anything up.
// If / when we retry, we won't have conflict issues.
if (NetworkClient.active) if (NetworkClient.active)
{ {
Debug.LogWarning("Client already started."); Debug.LogWarning("Client already started.");