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