Пример #1
0
 public UIWindowManager OpenWindow(UIWindowManager parent)
 {
     if (_windowState == 1)
     {
         return(this);
     }
     this.parent = parent;
     SetActive(true);
     StartCoroutine(AnimateWindow(1));
     return(this);
 }
Пример #2
0
 void OnEnable()
 {
     if (!_hasInit)
     {
         animationScale = GameRegistry.GetFloat("windowAnimationScale", animationScale);
         windowShadow   = GetComponent <Image>();
         if (windowWidth == 0)
         {
             windowWidth = window.rectTransform.rect.width;
         }
         CenterWindow();
         headerText.text = defaultTitle;
         if (confirmationWindow == null && closeConfirmation)
         {
             confirmationWindow = FindObjectOfType <UIConfirmationWindow>() as UIConfirmationWindow;
         }
         _hasInit = true;
     }
 }