public static IEnumerator DoRunWithLoadingUI <T>(Delegates.Runnable runnable) where T : TTUIPage, new() { TTUIPage.ShowPage <T>(); yield return(null); runnable(); TTUIPage.ClosePage <T>(); yield return(null); }
public static void DelayCall(MonoBehaviour behaviour, float time, Delegates.Runnable runnable) { behaviour.StartCoroutine(DoDelayCall(time, runnable)); }
public static void RunWithLoadingUI <T>(MonoBehaviour behaviour, Delegates.Runnable runnable) where T : TTUIPage, new() { behaviour.StartCoroutine(DoRunWithLoadingUI <T>(runnable)); }
private static IEnumerator DoDelayCall(float time, Delegates.Runnable runnable) { yield return(new WaitForSeconds(time)); runnable(); }