Example #1
0
    public override void Start()
    {
        backBtn = transform.Find("Back").GetComponent <Button>();

        settingCommon = transform.Find("SettingCommon").GetComponent <SettingCommon>();
        settingInput  = transform.Find("SettingInput").GetComponent <SettingInput>();
        settingVideo  = transform.Find("SettingVideo").GetComponent <SettingVideo>();

        backBtn.onClick.AddListener(Hide);
        base.Start();
    }
Example #2
0
        /// <summary>
        /// 添加配置项
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task CreateSettings(SettingInput input)
        {
            var model = input.MapTo <Setting>();

            if (input.Id.HasValue)
            {
                await _settingRepository.UpdateAsync(model);
            }
            else
            {
                model.TenantId = AbpSession.TenantId;
                await _settingRepository.InsertAsync(model);
            }
        }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     SettingInput = GameObject.Find("InputField");
     script       = SettingInput.GetComponent <SettingInput>();
 }