Beispiel #1
0
        /// <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));
        }
Beispiel #2
0
        /// <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));
        }
Beispiel #3
0
 public GetScriptTask(Request.GetScriptRequest request, UnityAction <AsyncResult <Result.GetScriptResult> > userCallback) : base(userCallback)
 {
     _request = request;
 }