| | |
| | | Debug.Log(ex.StackTrace);
|
| | | }
|
| | |
|
| | | RectTransform parent = null;
|
| | | try
|
| | | {
|
| | | windowTimer = 0f;
|
| | | var parentName = string.Empty;
|
| | | if (WindowConfig.Get().FindParentWindow(this.gameObject.name, out parentName))
|
| | | {
|
| | | var parentWindow = WindowCenter.Instance.Get(parentName);
|
| | | if (parentWindow != null)
|
| | | {
|
| | | parent = parentWindow.transform as RectTransform;
|
| | | rectTransform.MatchWhith(parent);
|
| | | }
|
| | | }
|
| | | OnPreOpen();
|
| | | WindowCenter.Instance.NotifyBeforeOpen(this);
|
| | | }
|
| | |
| | | }
|
| | | finally
|
| | | {
|
| | | var parent = FindParent(windowInfo.windowType);
|
| | |
|
| | | if (parent == null)
|
| | | {
|
| | | parent = FindParent(windowInfo.windowType);
|
| | | if (parent != null)
|
| | | {
|
| | | rectTransform.MatchWhith(parent);
|
| | |
| | | rectTransform.SetAsLastSibling();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | windowState = WindowState.Opening;
|
| | | windowInfo.raycastTarget = false;
|