Exemplo n.º 1
0
    /// <summary>
    /// called on save prompt (yes, no)
    /// </summary>
    public void InputChoice(int Id)
    {
        // yes, save
        if (Id == 0)
        {
            string savePointNameId = game.GetSavePointData().nameId;
            // check to see if editting or new entry
            Script_Entry existingEntry = entryManager.GetExistingEntry(savePointNameId);
            if (existingEntry != null)
            {
                entryInput.InitializeState(existingEntry.text);
            }
            else
            {
                entryInput.InitializeState(string.Empty);
            }

            StartEntryMode();
            dm.HideDialogue();
        }
        // no, don't save
        else
        {
            dm.NextDialogueNode(1);
        }
        EndSavePrompt();
    }