示例#1
0
    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();
    }
示例#2
0
    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();
    }