private void Render(DialogueData data) { mediated.Cleanup(); mediated.Text = data.Message; mediated.BackgroundAlpha = data.BackgroundAlpha; var index = 0; foreach (var actionData in data.Actions) { mediated.AddButton(actionData.Label, index); index++; } mediated.Show(); }
private void Show(DialogueData data) { dataStack.Push(data); Render(data); }