/// <summary> /// Request処理を行う /// 動作中ならば専用のオブジェクトを生成する /// </summary> internal static void Request(this UnityWebRequest self, Action success, Action <ErrorMessage> error) { #if UNITY_EDITOR if (!Application.isPlaying) { self.RequestEditor(success, error); return; } #endif if (_requestComponent == null) { var obj = new GameObject("RequestObject", typeof(RequestComponent)) { hideFlags = HideFlags.HideAndDontSave }; _requestComponent = obj.GetComponent <RequestComponent>(); } _requestComponent.StartCoroutine(RequestImpl(self, success, error)); }