/// <summary> /// スクリプトを取得します<br /> /// </summary> /// /// <returns>IEnumerator</returns> /// <param name="callback">コールバックハンドラ</param> /// <param name="request">リクエストパラメータ</param> public IEnumerator GetScript( Request.GetScriptRequest request, UnityAction <AsyncResult <Result.GetScriptResult> > callback ) { var task = new GetScriptTask(request, callback); return(Gs2WebSocketSession.Execute(task)); }
/// <summary> /// スクリプトを取得します<br /> /// </summary> /// /// <returns>IEnumerator</returns> /// <param name="callback">コールバックハンドラ</param> /// <param name="request">リクエストパラメータ</param> public IEnumerator GetScript( Request.GetScriptRequest request, UnityAction <AsyncResult <Result.GetScriptResult> > callback ) { var task = new GetScriptTask(request, callback); if (_certificateHandler != null) { task.UnityWebRequest.certificateHandler = _certificateHandler; } return(Gs2RestSession.Execute(task)); }
public GetScriptTask(Request.GetScriptRequest request, UnityAction <AsyncResult <Result.GetScriptResult> > userCallback) : base(userCallback) { _request = request; }