Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- yield return CoroutineExLibrary.Timeout(() => curentTurn != ExecutionMonitor.Battle.GetCompletedTurns(), 60).TryCoroutine();
- ....
- public IEnumerator TryCoroutine(IEnumerator Coroutine)
- {
- _executingCoroutine = Coroutine;
- while (true)
- {
- try
- {
- if (!Coroutine.MoveNext())
- {
- yield break;
- }
- }
- catch (Exception e)
- {
- ReportError(e.GetType() + " recived. Test aborted \n" + e.StackTrace);
- yield break;
- }
- yield return Coroutine.Current;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement