public void Apply(TransitionBase transition, TransitionInputParameters parameters, bool forward, float value, bool reset) { if (reset == true) { transition.SetResetState(parameters, this.window, null); } transition.Set(this.window, parameters, null, forward: forward, value: value); }
public void DoShowBegin(TransitionBase transition, TransitionInputParameters transitionParameters, AppearanceParameters parameters) { if (transition != null) { transition.SetResetState(transitionParameters, this.window, null); transition.Play(this.window, transitionParameters, null, forward: true, callback: parameters.callback); } else { // Reset to defaults var layoutWindow = (this.window as LayoutWindowType); if (layoutWindow != null) { layoutWindow.layout.GetLayoutInstance().root.Reset(); } parameters.Call(); } }
public void OnShowBegin(TransitionBase transition, TransitionInputParameters transitionParameters, System.Action callback) { if (transition != null) { transition.SetResetState(transitionParameters, this.window, null); transition.Play(this.window, transitionParameters, null, forward: true, callback: callback); } else { // Reset to defaults var layoutWindow = (this.window as LayoutWindowType); if (layoutWindow != null) { layoutWindow.layout.GetLayoutInstance().root.Reset(); } if (callback != null) { callback(); } } }