Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator Timeout ()
- {
- float progress = GetProgress();
- while (!isDone)
- {
- yield return new WaitForSeconds(timeout);
- float newProgress = GetProgress();
- if (newProgress > progress)
- {
- progress = newProgress;
- continue;
- }
- if (!isDone)
- {
- exception = new TimeoutException("Web requestBase timed out");
- isDone = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement