void Init() { _viewTextController = viewTextController.GetComponent <ViewTextController>(); _CDBfromCSV = createDataBase.GetComponent <CreateDBFromCSV>(); _dateInfo = new DateInfo(); _randIndex = UnityEngine.Random.Range(0, _CDBfromCSV.OrderdTempData[_id].Count); _id = 1; }
public PokedexPage() { InitializeComponent(); if (App.DAUtil.GetAllPokemons().Count == 0) { CreateDBFromCSV.CreateDB(); } currentPokemon = App.DAUtil.GetPokemonById(1); showPokemon(); }
void initDataSet() { //cycle日数をセット /* * _CycleData = new int[num]; * InitCycleData(_CycleData); * _ModifyData = new List<string>(); * CSV = CSV.GetComponent<CSV>(); * CSV.LoadFile(ref _ModifyData, "ModifyData"); * _tempData = new List<float>[num]; * for (int i = 0; i < num; i++){ * _tempData[i] = new List<float>(); * } */ _CDBfromCSV = CSV.GetComponent <CreateDBFromCSV>(); _viewTextController = viewController.GetComponent <ViewTextController>(); }
void init() { _texts = new GameObject[num]; _textMeshes = new TextMesh[num]; _senGenerator = generator.GetComponent <SentenceGenerator>(); for (int i = 0; i < num; i++) { _texts[i] = Instantiate(prefText, new Vector3(0, i * _stepSize, 0), Quaternion.identity) as GameObject; _texts[i].name = "text" + i.ToString(); _texts[i].transform.SetParent(this.gameObject.transform); _textMeshes[i] = _texts[i].GetComponent <TextMesh>(); _textMeshes[i].text = _senGenerator.SenData[i]; } _cdb = csv.GetComponent <CreateDBFromCSV>(); _tempData = new List <float> [num]; for (int i = 0; i < num; i++) { _tempData[i] = new List <float>(); } _tempData = _cdb.OrderdTempData; }