IEnumerator ResponseRoutine() { yield return(new WaitForSeconds(0.5f)); ServerAPILogRecorder.Record(new ServerAPILogRecorder.RecordData() { date = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), url = urlInput.text, type = ServerAPILogRecorder.Type.RESPONCE, json = "{\"Info\":{\"User\":{\"nickName\":\"taro\",\"level\":8,\"Link\":{\"Email\":[],\"Social\":[]}}},\"additional\":{\"progressMissionList\":[]}}", }); _isWait = false; }
public void OnClickSend() { if (_isWait) { return; } _isWait = true; ServerAPILogRecorder.Record(new ServerAPILogRecorder.RecordData() { date = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), url = urlInput.text, type = ServerAPILogRecorder.Type.POST, json = jsonInput.text, }); StartCoroutine(ResponseRoutine()); }