/// <summary> /// This is used for windows transition animation when new current screen is getting removed. /// </summary> /// <param name="target">Target.</param> public static bool OnWindowRemove(this GameObject target) { WindowTransition transition = target.GetComponent <WindowTransition> (); if (transition != null) { transition.OnWindowRemove(); return(true); } return(false); }
protected override void OnInterfaceInitialize() { // Check whether the window object has a transition add-on component. // If it does, we will be using it to transition in and out this.Transition = GetComponent <WindowTransition>(); // If there's no transition component, start this faded out! //if (this.Transition == null) //Trace.Script("Fading window out!"); //Fade(0.0f, 0.0f); this.Subscribe(); // Initialize the window subclass this.OnWindowInitialize(); }