Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1.             public void OnException(string condition, string stacktrace, LogType type)
  2.             {
  3.                 if (type != LogType.Exception)
  4.                     return;
  5.                 ReportError("Exception recived: " + condition + "\n"+stacktrace);
  6.                 LoadingScreen.Relogin();
  7.                 StopAllNestedCoroutines(_executingCoroutine);
  8.             }
  9.  
  10.             private void StopAllNestedCoroutines(IEnumerator coroutine)
  11.             {
  12.                 if ((coroutine.Current!=null)&&(coroutine.Current.GetType() == typeof(IEnumerator)))
  13.                 {
  14.                     StopAllNestedCoroutines((IEnumerator)coroutine.Current);
  15.                 }
  16.                 else
  17.                 {
  18.                     StopCoroutine(coroutine);
  19.                 }
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement