| | |
| | | }
|
| | |
|
| | | public bool playAnimation { get; set; }
|
| | | public bool executedActiveWindow { get; set; }
|
| | |
|
| | | internal Window Open()
|
| | | {
|
| | |
| | | Debug.Log(ex.StackTrace);
|
| | | }
|
| | |
|
| | | executedActiveWindow = false;
|
| | | RectTransform parent = null;
|
| | | try
|
| | | {
|
| | |
| | | windowState = WindowState.Closing;
|
| | | }
|
| | |
|
| | | executedActiveWindow = false;
|
| | | return this;
|
| | | }
|
| | |
|
| | |
| | | try
|
| | | {
|
| | | OnAfterClose();
|
| | | executedActiveWindow = false;
|
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | |
| | | public virtual void CloseClick()
|
| | | {
|
| | | CloseImmediately();
|
| | | }
|
| | |
|
| | | public void ChildActive()
|
| | | {
|
| | | OnActived();
|
| | | }
|
| | |
|
| | | protected virtual void LateUpdate()
|
| | |
| | | try
|
| | | {
|
| | | OnAfterClose();
|
| | | executedActiveWindow = false;
|
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | |
| | | try
|
| | | {
|
| | | OnAfterClose();
|
| | | executedActiveWindow = false;
|
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | |
| | |
|
| | | try
|
| | | {
|
| | | OnActived();
|
| | | var isChildWindow = WindowConfig.Get().IsChildWindow(this.gameObject.name);
|
| | | if (isChildWindow)
|
| | | {
|
| | | var parentName = string.Empty;
|
| | | WindowConfig.Get().FindParentWindow(this.gameObject.name, out parentName);
|
| | | var parentWindow = WindowCenter.Instance.Get(parentName);
|
| | | if (parentWindow != null && parentWindow.executedActiveWindow)
|
| | | {
|
| | | OnActived();
|
| | | executedActiveWindow = true;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | OnActived();
|
| | | executedActiveWindow = true;
|
| | | var childWindows = WindowConfig.Get().FindChildWindows(this.gameObject.name);
|
| | | var isParentWindow = childWindows != null;
|
| | | if (isParentWindow)
|
| | | {
|
| | | foreach (var child in childWindows)
|
| | | {
|
| | | var window = WindowCenter.Instance.Get(child);
|
| | | if (window != null && !window.executedActiveWindow)
|
| | | {
|
| | | window.ChildActive();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|