Exemplo n.º 1
0
    public void runMenuResult(int nextDialogueIndex, DialogueData.MenuResultInstruct resultInstruct, int data, string saveLocation)
    {
        switch (resultInstruct)
        {
        case DialogueData.MenuResultInstruct.NONE:
            break;

        case DialogueData.MenuResultInstruct.SaveToPlayerPrefs_Int:
            DialogueData.setSavedInt(saveLocation, data);
            break;

        default:
            break;
        }

        if (nextDialogueIndex != -1)
        {
            //If a menu option is selected then use the Dialogue Index attached to the
            //menu option to start a new Speech.
            dialogueManager.startDialogueOutput(nextDialogueIndex);
        }

        //Make menu inactive only after the next speech has had a chance to start.
        dialogueMenuActive = false;
    }
Exemplo n.º 2
0
 public DialogueMenuData(DialogueData.MenuResultInstruct resultInstruction, DialogueMenuOption[] allMenuOptions)
 {
     this.allMenuOptions    = allMenuOptions;
     this.resultInstruction = resultInstruction;
 }