Example #1
0
    void DeleteDialogue()
    {
        CharacterData.Info.Character lastName = mSelf.dialogueList[mSelf.dialogueList.Count - 1].character.name;
        if (lastName != CharacterData.Info.Character.NONE)
        {
            UpdateTotalWhenCharIsDeleted(lastName.ToString());
        }

        mSelf.deleteDialogue();
        mIsControlList.RemoveAt(mIsControlList.Count - 1);
        mIsMessedUpList.RemoveAt(mIsMessedUpList.Count - 1);
        mIsAppearList.RemoveAt(mIsAppearList.Count - 1);
        mIsAddDelayList.RemoveAt(mIsAddDelayList.Count - 1);
        mIsReOpenList.RemoveAt(mIsReOpenList.Count - 1);
        mIsDisappearList.RemoveAt(mIsDisappearList.Count - 1);
        SetMessedUpMessage();
    }