protected override void Awake() { totalLatitudes /= dataScale; totalLongitudes /= dataScale; apiRange *= dataScale; switch (dataSource) { case DataSource.SERVER: http = gameObject.AddComponent <HTTPRequestWrapper>(); fileSystem = new FileWrapper(); fileSystem.SetDirectory(Application.persistentDataPath + "/"); break; case DataSource.CSV: csv = gameObject.GetComponent <JAXAOpenAPICSVWrapper>(); break; } foreach (DataType type in Enum.GetValues(typeof(DataType))) { currentDatas.Add(type, new float[(totalLongitudes + 1) * totalLatitudes]); } base.Awake(); }