/// <summary>
        /// 观察实体
        /// </summary>
        private void Awake()
        {
            Drag2dDataEntity entity = new Drag2dDataEntity();

            this.DataEntity = entity;
            Watch(this);
        }
Example #2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void Start()
 {
     str      = new DragUIStr();
     entity   = (Drag2dDataEntity)GetComponent <Drag2dDataModel>().DataEntity;
     _ThisPos = this.transform.position;
     YSize    = this.gameObject.transform.GetComponent <RectTransform>().rect.y;
     XSize    = this.gameObject.transform.GetComponent <RectTransform>().rect.width;
     array    = gameObject.GetComponentsInChildren <DataModelBehaviour>();
 }