From d3f466d3c4a92844d1e3ec31c1ad8b401c37822e Mon Sep 17 00:00:00 2001 From: Anton Franzluebbers Date: Thu, 22 Feb 2024 16:48:31 -0500 Subject: [PATCH] make more things null instead --- unity_package/Runtime/VELConnectManager.cs | 12 ++---------- unity_package/Runtime/VelNetPersist.cs | 1 - unity_package/package.json | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/unity_package/Runtime/VELConnectManager.cs b/unity_package/Runtime/VELConnectManager.cs index 2605a32..35937f4 100644 --- a/unity_package/Runtime/VELConnectManager.cs +++ b/unity_package/Runtime/VELConnectManager.cs @@ -259,15 +259,7 @@ namespace VELConnect { state = JsonConvert.DeserializeObject(json); if (state == null) return; - if (state.room == null) { - state.room = new State.DataBlock - { - category = "room", - modified_by = "Unity", - data = null, - block_id = Application.productName + "_" + VelNetManager.Room - }; - } + if (state.room == null) return; bool isInitialState = false; @@ -923,7 +915,7 @@ namespace VELConnect case UnityWebRequest.Result.ConnectionError: case UnityWebRequest.Result.DataProcessingError: case UnityWebRequest.Result.ProtocolError: - Debug.LogError(url + ": Error: " + webRequest.error + "\n" + webRequest.downloadHandler.text + "\n" + Environment.StackTrace); + Debug.LogWarning(url + ": Error: " + webRequest.error + "\n" + webRequest.downloadHandler.text + "\n" + Environment.StackTrace); failureCallback?.Invoke(webRequest.error); break; case UnityWebRequest.Result.Success: diff --git a/unity_package/Runtime/VelNetPersist.cs b/unity_package/Runtime/VelNetPersist.cs index 809d13c..c402b20 100644 --- a/unity_package/Runtime/VelNetPersist.cs +++ b/unity_package/Runtime/VelNetPersist.cs @@ -73,7 +73,6 @@ namespace VELConnect loading = false; }, s => { - Debug.LogError(s); loading = false; }); } diff --git a/unity_package/package.json b/unity_package/package.json index 5053237..6f33f5b 100644 --- a/unity_package/package.json +++ b/unity_package/package.json @@ -1,7 +1,7 @@ { "name": "edu.uga.engr.vel.vel-connect", "displayName": "VEL-Connect", - "version": "4.0.4", + "version": "4.0.5", "unity": "2019.1", "description": "Web-based configuration for VR applications", "keywords": [],