Esempio n. 1
0
        public static void SetParent(Transform window, bool isOpen, UIFormType uIFormType)
        {
            if (isInit == false)
            {
                Init();
            }
            if (isOpen == true)//打开则放置在对应的窗口下
            {
                switch (uIFormType)
                {
                case UIFormType.Tip:
                    window.SetParent(noticeStation, false);
                    break;

                case UIFormType.Normal:
                    window.SetParent(workStation, false);
                    break;

                case UIFormType.Fixed:
                    window.SetParent(fixedStation, false);
                    break;

                default:
                    break;
                }
            }
            else//否则放入回收池
            {
                window.SetParent(recyclePool, true);
            }
        }
Esempio n. 2
0
 public UIType(UnityEngine.Color maskColor)
 {
     this.layerIndex = 0;
     this.form       = UIFormType.Fixed;
     this.hideAlaph  = 0;
     this.layer      = UILayerType.Base;
     this.enterAnim  = null;
     this.quitAnim   = null;
     this.closeRule  = CloseRule.DestroyNoraml;
     this.hideRule   = HideRule.HideGameObject;
     this.cover      = UIMask.None;
     this.maskColor  = maskColor;
 }