Skip to content
Snippets Groups Projects
Commit 8d7d023e authored by baletiballo's avatar baletiballo
Browse files

minor cleanup; replaced deprecated function and formatString

parent 7f49a80b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment