//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);
    }
Example #3
0
        public Task CreateAsync(CreateText createText)
        {
            _dbContext.Texts.Add(new Text
            {
                Title    = createText.Title,
                Words    = createText.Words,
                Language = createText.Lang
            });

            return(_dbContext.SaveChangesAsync());
        }
Example #4
0
        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);
        }
Example #5
0
 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 { }
         }
     }));
 }
Example #6
0
 private void Awake()
 {
     instance = this;
 }