public ITransition Dismiss(IWindow window) { HideTransition transition = new HideTransition(this, (Window)window, true); GetTransitionExecutor().Execute(transition); return transition.OnStateChanged((w, state) => { Debug.LogFormat("Dismiss Window:{0} State:{1}", w.Name, state); /* Control the layer of the window */ if (state == WindowState.INVISIBLE) this.MoveToLast(w); }); }
public ITransition Dismiss(IWindow window) { HideTransition transition = new HideTransition(this, (Window)window, true); GetTransitionExecutor().Execute(transition); return(transition.OnStateChanged((w, state) => { /* Control the layer of the window */ if (state == WindowState.INVISIBLE) { this.MoveToLast(w); } })); }