Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
    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();
            }
        }
    }