public void BuildAddChartInstance() { if (!LimTunerManager.Instance.isInitialized) { return; } GameObject temp = Instantiate(BuildChartPrefab, BuildChartListContent); LimLayestaBuildChart chart = temp.GetComponent <LimLayestaBuildChart>(); chart.Initialize("Instance"); chart.DifficultyText.text = "Master"; buildChartViews.Insert(0, chart); AddInstanceButton.interactable = false; BuildRefreshChartList(); }
public void BuildAddChartFromFile() { if (!LimTunerManager.Instance.isInitialized) { return; } string path = WindowsDialogUtility.OpenFileDialog("", "*.txt|*.txt", LimProjectManager.LapFolder); if (path == null) { return; } GameObject temp = Instantiate(BuildChartPrefab, BuildChartListContent); LimLayestaBuildChart chart = temp.GetComponent <LimLayestaBuildChart>(); chart.Initialize(path); buildChartViews.Insert(0, chart); BuildRefreshChartList(); }