diff --git a/Assets/Scripts/InventoryStuff/ActiveScroll.cs b/Assets/Scripts/InventoryStuff/ActiveScroll.cs index 65e9ab69aa47235f6eee97053d0a4a836f2bd01e..ed80066b28ee0afb587f7fa5a6c4735f1969ce99 100644 --- a/Assets/Scripts/InventoryStuff/ActiveScroll.cs +++ b/Assets/Scripts/InventoryStuff/ActiveScroll.cs @@ -386,7 +386,7 @@ private IEnumerator _SendAssignments() if (errors.Length > 0) OnScrollDynamicInfoError.Invoke(errors); - _ProcessScrollDynamicInfo(scrollDynamicInfo); + _ProcessScrollDynamicInfo(scrollDynamicInfo); } } @@ -455,11 +455,10 @@ private IEnumerator SendView(string endpoint) www.method = UnityWebRequest.kHttpVerbPOST; www.SetRequestHeader("Content-Type", "application/json"); - System.DateTime sendTime = System.DateTime.UtcNow; + DateTime sendTime = DateTime.UtcNow; yield return www.SendWebRequest(); //if (VerboseURI) - Debug.LogFormat("Server answered in : {0}ms" - , (System.DateTime.UtcNow - sendTime).TotalMilliseconds); + Debug.Log($"Server answered to {endpoint} in : {(DateTime.UtcNow - sendTime).TotalMilliseconds} ms"); if (www.result == UnityWebRequest.Result.ConnectionError || www.result == UnityWebRequest.Result.ProtocolError) diff --git a/Assets/Scripts/UI/InGame/ScrollDetails.cs b/Assets/Scripts/UI/InGame/ScrollDetails.cs index ec1fd9770498cb42cc48ccfdc12104e84a5dbda2..28da4ac6ca93b33ab6c2514df445972b62715f73 100644 --- a/Assets/Scripts/UI/InGame/ScrollDetails.cs +++ b/Assets/Scripts/UI/InGame/ScrollDetails.cs @@ -30,7 +30,7 @@ void Awake() { Instance = this; - if (cursor == null) cursor = FindObjectOfType<WorldCursor>(); + if (cursor == null) cursor = FindAnyObjectByType<WorldCursor>(); Popup = mmtAnswerPopUp.GetComponent<PopupBehavior>(); Popup.gameObject.SetActive(true); // force Awake