//SumAcceleration SumScript; void Start() { totalTime = minute * 60 + seconds; oldSeconds = 0f; timerText = GetComponentInChildren <Text>(); Sumaho = GameObject.Find("Sumaho"); SumAccscript = Sumaho.GetComponent <SumAcceleration>(); CalPscript = Sumaho.GetComponent <CalculatePoint>(); DecideSendscript = Sumaho.GetComponent <DecideSendCountry>(); Resultdeliver = GameObject.Find("ResultDeliver"); Resultdeliverscript = Resultdeliver.GetComponent <ResultDeliver>(); }
// Start is called before the first frame update void Start() { Sumaho = GameObject.Find("Sumaho"); CalPscript = Sumaho.GetComponent <CalculatePoint>(); csvFile = Resources.Load("CountryList_txt") as TextAsset; StringReader reader = new StringReader(csvFile.text); //Debug.Log(csvFile.text); //Debug.Log("DecideStart"); while (reader.Peek() != -1) { string line = reader.ReadLine(); csvDatas.Add(line.Split(',')); //Latitudelist.Add(double.Parse(csvDatas[i][1])); // Longitudelist.Add(double.Parse(csvDatas[i][2])); Datanum++; //Debug.Log(line); //Debug.Log(csvDatas[2][2]); } }