Exemplo n.º 1
0
        protected virtual LDFWWWWCallCoroutineWrapper CommonWWWCall(WWW www, LDFWServerResponseEvent successCallBack, LDFWServerResponseEvent failureCallBack)
        {
            IEnumerator newCall = CommonWWWCallCoroutine(www, successCallBack, failureCallBack);

            LDFWWWWCallCoroutineWrapper newWrapper = new LDFWWWWCallCoroutineWrapper(www.url, this, www, newCall, Time.time);

            wwwList.Add(newWrapper);

            newWrapper.StartWWWCall();

            return(newWrapper);
        }
Exemplo n.º 2
0
        protected virtual IEnumerator CommonWWWCallCoroutine(WWW www, LDFWServerResponseEvent successCallBack, LDFWServerResponseEvent failureCallBack)
        {
            Debug.LogError("Please implement your own version of this method");

            yield return(www);

            if (!string.IsNullOrEmpty(www.error))
            {
                DebugLogger.Log("www error: (" + www.url + ")" + www.error + "\n" + www.text);
                yield break;
            }

            www.Dispose();
            www = null;
        }