void OnValidate()
 {
     if (Application.isPlaying)
     {
         return;
     }
     rect = GetComponent <RectTransform>();
     col  = GetComponent <UICollider>();
 }
Example #2
0
        public TTUIPage(UIType type, UIMode mod, UICollider col)
        {
            this.type = type;
            this.mode = mod;
            this.collider = col;
            this.name = this.GetType().ToString();

            //bind special delegate .
            TTUIBind.Bind();
        }
Example #3
0
        public WTUIPage(UIType type, UIMode mod, UICollider col)
        {
            this.type     = type;
            this.mode     = mod;
            this.collider = col;
            this.name     = this.GetType().ToString();


            WTUIBind.Bind();
        }
Example #4
0
        public TTUIPage(UIType type, UIMode mod, UICollider col)
        {
            this.type = type;
            this.mode = mod;
            this.collider = col;
            this.name = this.GetType().ToString();

            //when create one page.
            //bind special delegate .
            TTUIBind.Bind();
            //Debug.LogWarning("[UI] create page:" + ToString());
        }
Example #5
0
 public UIPage(UIType type, UIMode mod, UICollider col)
 {
     this.type = type;
     this.mode = mod;
 }
Example #6
0
 public BasePage(UIType type, UIMode mod, UICollider col) : base(type, mod, col)
 {
 }