コード例 #1
0
        private static bool CheckAndLogError(UnityWebRequest request)
        {
            if (!request.isNetworkError && !request.isHttpError)
            {
                Debug.Log(request.Info());
                return(false);
            }
            Debug.LogError(request.Info());

            if (request.responseCode != 401)
            {
                return(true);
            }
            DeleteCookies();
            Debug.LogError("Unauthorized response code received. Deleting cookies...");
            return(true);
        }