Skip to content

Commit

Permalink
Small debug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theradest1 committed Apr 16, 2024
1 parent 9874f58 commit 5f4b382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/UM2/Variable sync/UM2_Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public IEnumerator createNetworkVariable(string name, object value, Type type, i
NetworkVariable_Client newVariable = new NetworkVariable_Client(name, value, type, id, linkedID);
}
catch(Exception e){
Debug.LogWarning("Variable failed to be created, trying again. Error message: " + e.Message);
if(UM2_Client.instance.debugBasicMessages){
Debug.LogWarning("Variable failed to be created, trying again. Error message: " + e.Message);
}
StartCoroutine(createNetworkVariable(name, value, type, linkedID));
}

Expand Down

0 comments on commit 5f4b382

Please sign in to comment.