Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OnException(string condition, string stacktrace, LogType type)
- {
- if (type != LogType.Exception)
- return;
- ReportError("Exception recived: " + condition + "\n"+stacktrace);
- LoadingScreen.Relogin();
- StopAllNestedCoroutines(_executingCoroutine);
- }
- private void StopAllNestedCoroutines(IEnumerator coroutine)
- {
- if ((coroutine.Current!=null)&&(coroutine.Current.GetType() == typeof(IEnumerator)))
- {
- StopAllNestedCoroutines((IEnumerator)coroutine.Current);
- }
- else
- {
- StopCoroutine(coroutine);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement