Esempio n. 1
0
        private void DialogEntryChange(DialogData dialog, int entryIndex)
        {
            if (entryIndex < 0 || entryIndex >= (dialog?.Entries?.Count ?? 0))
            {
                return;
            }

            var entry = dialog.Entries[entryIndex];

            subtitle.text = entry?.Subtitle ?? "";
            currentEntry  = entryIndex;
        }
Esempio n. 2
0
        private void DialogEntryChange(DialogData dialog, int entryIndex)
        {
            if (entryIndex < 0 || entryIndex >= (dialog?.Entries?.Count ?? 0))
            {
                return;
            }

            var entry = dialog.Entries[entryIndex];

            var choice = (choiceIndex >= 0 && choiceIndex < (entry?.Choices?.Count ?? 0)) ? entry.Choices[choiceIndex] : null;

            text.text = choice?.Text ?? "";
        }
        private void DialogEntryChange(DialogData dialog, int entryIndex)
        {
            if (entryIndex < 0 || entryIndex >= (dialog?.Entries?.Count ?? 0))
            {
                return;
            }

            var entry = dialog.Entries[entryIndex];

            if (choiceIndex < 0 || choiceIndex >= (entry?.Choices?.Count ?? 0))
            {
                return;
            }

            var choice = entry.Choices[choiceIndex];

            button.enabled = choice != null;
            this.dialog    = dialog;
        }
Esempio n. 4
0
 private void DialogEnd(DialogData.DialogChoiceType result)
 {
     gameObject.SetActive(false);
     dialog       = null;
     currentEntry = -1;
 }
Esempio n. 5
0
 public static void InvokeDialogSelected(DialogData dialog, int choiceIndex) => OnDialogSelected(dialog, choiceIndex);
Esempio n. 6
0
 public static void InvokeDialogEntryChange(DialogData dialog, int entryIndex) => OnDialogEntryChange(dialog, entryIndex);
Esempio n. 7
0
 public static void InvokeDialogStart(DialogData dialog) => OnDialogStart(dialog);
Esempio n. 8
0
 private void DialogStart(DialogData dialog)
 {
     gameObject.SetActive(false);
 }
Esempio n. 9
0
 private void DialogStarted(DialogData dialog)
 {
     source.Stop();
     source.clip = clipDating;
     source.Play();
 }
Esempio n. 10
0
 private void DialogStart(DialogData dialog)
 {
     isDating = true;
 }
 private void DialogStart(DialogData dialog)
 {
     controller.enabled = false;
 }