//public int oNumber, LastoNumber; void Start() { menuList = gameObject.GetComponent <MenuList>(); orderInspector = gameObject.GetComponent <OrderInspector>(); newText = gameObject.GetComponent <CreateText>(); iQuandity = 0; }
//Init void Start() { CreateText createTextScript = gameObject.GetComponent <CreateText>(); HandleColliders handleCollidersScript = gameObject.GetComponent <HandleColliders>(); words = createTextScript.WordsInText; InitText(words); handleCollidersScript.setColliders(_changingObjColliders); }
public Task CreateAsync(CreateText createText) { _dbContext.Texts.Add(new Text { Title = createText.Title, Words = createText.Words, Language = createText.Lang }); return(_dbContext.SaveChangesAsync()); }
public async Task CreateAsync_Ok() { var createText = new CreateText("words", "title", "lang"); var textRepository = CreateTextRepositoryMock() .MockExistByTileAsync("title", false) .Resolve(); var text = new TextBusiness(textRepository, EmptyUserRepository); await text.CreateAsync(createText); }
private void btntxt_Click(object sender, EventArgs e) { action(new Action(() => { var temps = (this.lbFiles.Tag as List <ItemFileInfo>); List <string> files = temps.Where((l) => l.ExtensionName.Equals(".xls")).Select(l => l.Path).ToList(); FileExcelDatas exceldatas; if (ReadExcelData.Instance().ReadExcelDataToCache(files, out exceldatas, new Action <string>((msg) => { Show(msg); }))) { CreateText.Instance().ActionExcelData(exceldatas, "|", new Action <string>((msg) => { Show(msg); })); Show("Excel 转 Text 全部处理完成 文件目录:" + CreateBase.TextPath); try { System.Diagnostics.Process.Start(CreateBase.TextPath); } catch { } } })); }
private void Awake() { instance = this; }