protected void OnHeadFetched(UnityWebRequest request) { if (IsHeadFetched) { return; } IsHeadFetched = true; if (request != null) { Size = request.GetContentLengthNum(); } HeadFetched?.Invoke(this); if (request != null && request.responseCode == 304) { OnDownloaded(request); } }