From 3986f749608d3f013bcddfe2cf843f970bfb53ec Mon Sep 17 00:00:00 2001 From: Pravus Date: Wed, 26 Jun 2019 18:51:22 -0300 Subject: [PATCH] chore: update WSSController LOCAL_COMMS param and UnloadScene support (#526) * Updated fabricated url to have LOCAL_COMMS param. * Added UnloadScene support in WSSController * Updated the use of LOCAL_COMMS param to be toggleable from editor --- .../Scripts/MainScripts/Debugging/WSS/WSSController.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/MainScripts/Debugging/WSS/WSSController.cs b/Assets/Scripts/MainScripts/Debugging/WSS/WSSController.cs index 45911945f..d8b3bfe76 100644 --- a/Assets/Scripts/MainScripts/Debugging/WSS/WSSController.cs +++ b/Assets/Scripts/MainScripts/Debugging/WSS/WSSController.cs @@ -94,6 +94,7 @@ public enum DebugPanel public bool openBrowserWhenStart; public bool useClientDebugMode = true; + public bool forceLocalComms = true; public Vector2 startInCoords = new Vector2(-99, 109); public DebugPanel debugPanelMode = DebugPanel.Off; @@ -119,6 +120,10 @@ private void OnEnable() { debugString = "DEBUG_MODE&LOCAL_COMMS&"; } + else if(forceLocalComms) + { + debugString = "LOCAL_COMMS&"; + } string debugPanelString = ""; if (debugPanelMode == DebugPanel.Engine) @@ -131,7 +136,7 @@ private void OnEnable() } Application.OpenURL( - $"http://localhost:8080/?{debugString}{debugPanelString}&position={startInCoords.x}%2C{startInCoords.y}&ws=ws%3A%2F%2Flocalhost%3A5000%2Fdcl"); + $"http://localhost:8080/?{debugString}{debugPanelString}position={startInCoords.x}%2C{startInCoords.y}&ws=ws%3A%2F%2Flocalhost%3A5000%2Fdcl"); } #else useClientDebugMode = false; @@ -181,6 +186,9 @@ void Update() case "LoadParcelScenes": sceneController.LoadParcelScenes(msg.payload); break; + case "UnloadScene": + sceneController.UnloadScene(msg.payload); + break; case "SetPosition": characterController.SetPosition(msg.payload); break;