private void OkClose()
    {
        if (OnRight() == false)
        {
            return;
        }
        else
        {
            if (m_ContentType == ContentBossType.AddNew)
            {
                EiderToolPage.Instance.SongObject.BossInfos.BossLineObject.Add(m_EditerLine);
            }
            else if (m_ContentType == ContentBossType.Insert)
            {
                EiderToolPage.Instance.SongObject.BossInfos.BossLineObject.Insert(m_BossLineNum, m_EditerLine);
            }
            else
            {
                EiderToolPage.Instance.SongObject.BossInfos.BossLineObject[m_BossLineNum] = m_EditerLine;
            }

            Close();
            m_BossNode.transform.Find("BossNode").gameObject.SetActive(true);
            m_BossNode.DisPlay();
        }
    }
Exemple #2
0
    private void Delete()
    {
        int lineNo = int.Parse(m_LineNo.text) - 1;

        EiderToolPage.Instance.SongObject.BossInfos.BossLineObject.RemoveAt(lineNo);
        m_BossNode.DisPlay();
    }