Пример #1
0
        public override void LoadStorageData()
        {
            base.LoadStorageData();
            UGUIDataEntity data = (UGUIDataEntity)DataEntity;

            GetComponent <WebGLInputFieldRainier>().inputField.text = data.Inputfile;
        }
Пример #2
0
 protected override void Start()
 {
     try
     {
         entity = (UGUIDataEntity)GetComponent <SliderModel>().DataEntity;
     }
     catch (System.Exception) {   }
 }
Пример #3
0
 protected override void Start()
 {
     base.Start();
     try
     {
         toggleEntity = (UGUIDataEntity)GetComponent <ToggleMode>().DataEntity;
     }
     catch (System.Exception) { }
 }
Пример #4
0
        /// <summary>
        /// 文本内筒是否发生变化
        /// </summary>
        private void IsTextChang()
        {
            UGUIDataEntity uGUIDataEntity = GetComponent <TextModel>().DataEntity as UGUIDataEntity;

            if (uGUIDataEntity == null)
            {
                return;
            }
            string textContext = uGUIDataEntity.TextContent.ToString();

            if (text.Equals(textContext))
            {
                return;
            }
            else
            {
                ((UGUIDataEntity)GetComponent <TextModel>().DataEntity).TextContent = text;
            }
        }