Beispiel #1
0
        /// <summary>
        /// 还原基本信息
        /// </summary>
        public override void LoadStorageData()
        {
            base.LoadStorageData();
            UGUIDataEntity data = (UGUIDataEntity)DataEntity;

            GetComponent <DropdownRainier>().value = data.DropDownValue;
        }
Beispiel #2
0
        /// <summary>
        /// 重写还原系统
        /// </summary>
        public override void LoadStorageData()
        {
            base.LoadStorageData();
            UGUIDataEntity data = (UGUIDataEntity)DataEntity;

            GetComponent <ToggleRanier>().isOn = data.ToggleIsOn;
        }
Beispiel #3
0
        /// <summary>
        /// 还原基本信息
        /// </summary>
        public override void LoadStorageData()
        {
            base.LoadStorageData();
            UGUIDataEntity data = (UGUIDataEntity)DataEntity;

            GetComponent <SliderRainier>().value = data.SliderValue;
        }
Beispiel #4
0
        /// <summary>
        /// 重写还原方法
        /// </summary>
        public override void LoadStorageData()
        {
            base.LoadStorageData();
            UGUIDataEntity data = (UGUIDataEntity)DataEntity;

            GetComponent <TextRainier>().text = data.TextContent.ToString();
        }
    protected override void Start()
    {
        try
        {
            entity = (UGUIDataEntity)GetComponent <InputFieldModel>().DataEntity;
        }
        catch (System.Exception) { }

        inputField = transform.gameObject.GetComponent <InputField>();
        if (inputField != null)
        {
            inputField.onValueChanged.AddListener(ShowText);
        }
        else
        {
            Debug.LogError("Not Found InputField Component!!!");
        }
        base.Start();
    }