using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; public class VRManualMenu : MonoBehaviour { private void Start() { this.Init(); } private void Init() { List list = new List(); string text = "vrcom_config.nei"; if (!GameUty.FileSystem.IsExistentFile(text)) { NDebug.Assert("表がありません。" + text, false); } using (AFileBase afileBase = GameUty.FileSystem.FileOpen(text)) { using (CsvParser csvParser = new CsvParser()) { bool condition = csvParser.Open(afileBase); NDebug.Assert(condition, text + "\nopen failed."); for (int i = 1; i < csvParser.max_cell_y; i++) { if (csvParser.IsCellToExistData(0, i)) { int num = 0; int cellAsInteger = csvParser.GetCellAsInteger(num++, i); string cellAsString = csvParser.GetCellAsString(num++, i); string cellAsString2 = csvParser.GetCellAsString(num++, i); char[] array = csvParser.GetCellAsString(num++, i).ToCharArray(); string cellAsString3 = csvParser.GetCellAsString(num++, i); bool flag = false; for (int j = 0; j < array.Length; j++) { if (array[j] == ((int)GameMain.Instance.VRDeviceTypeID).ToString().ToCharArray()[0]) { flag = true; } } if (flag) { if (string.IsNullOrEmpty(cellAsString)) { list.Add(new VRManualMenu.ManualData(cellAsInteger, -1, cellAsString2, cellAsString3, null)); } else { list.Add(new VRManualMenu.ManualData(cellAsInteger, int.Parse(cellAsString), cellAsString2, cellAsString3, null)); } } } } } } for (int k = 0; k < list.Count; k++) { VRManualMenu.ManualData data = list[k]; if (data.BeforeID != -1) { this.m_ManualDataArray.Add(data); } else { GameObject gameObject = UnityEngine.Object.Instantiate(this.m_PrefabButton); gameObject.transform.SetParent(this.m_ScrollArea, false); gameObject.SetActive(true); data.ButtonPair = gameObject.GetComponent