/// <summary> /// Hides all transition views /// </summary> public void HideAllTransitions(Action onTransitionHidden = null) { AsyncJobTracker transitionHideTracker = new AsyncJobTracker(3, () => { if (onTransitionHidden != null) { onTransitionHidden(); } }, null); HideFastTransition(() => { transitionHideTracker.Success(); }); HideBusyWait(() => { transitionHideTracker.Success(); }); HideLoadingScreen(() => { transitionHideTracker.Success(); }); }
public void Initialize(InstanceInitializedCallback initializedCallback) { AsyncJobTracker loadTracker = new AsyncJobTracker(3, () => { if (initializedCallback != null) { initializedCallback(this); } }, null); _viewProvider.Get <NguiBusyWaitView>((view) => { _busyWaitView = view; loadTracker.Success(); }); _viewProvider.Get <NguiFastTransitionView>((view) => { _fastTransitionView = view; loadTracker.Success(); }); _viewProvider.Get <NguiLoadingView>((view) => { _loadingView = view; loadTracker.Success(); }); }