internal void UpdateOption(int chosenOptionIndex) { this.chosenOptionIndex = chosenOptionIndex; for (int i = 0; i < choicePanels.Count; i++) { ChoicePanel panel = choicePanels[i]; if (i == chosenOptionIndex) { panel.Show(); panel.Focus(); } else { panel.Blur(); } } }
public override void Focus() { bubbleFrame.material.color = focusColor; for (int i = 0; i < choicePanels.Count; i++) { ChoicePanel panel = choicePanels[i]; panel.ChoiceBubbleInFocus = true; panel.Show(); if (i == chosenOptionIndex) { panel.Focus(); } else { panel.Blur(); } } }