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