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(); }
/// <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); } }
// Start is called before the first frame update void Start() { SettingInput = GameObject.Find("InputField"); script = SettingInput.GetComponent <SettingInput>(); }