Beispiel #1
0
 private void refreshSelectedCol()
 {
     selected_col = 0;
     for (int i = 0; i < cols.Length; i++)
     {
         UICol col = cols[i];
         if (col.is_selected)
         {
             selected_col = i;
         }
     }
 }
Beispiel #2
0
    public void unfold_refresh()
    {
        cols = GetComponentsInChildren <UICol>();

        if (is_selected)
        {
            row_text.color = UIColor.base_color;
        }
        else
        {
            row_text.color = UIColor.darken_color;
        }

        for (int i = 0; i < cols.Length; i++)
        {
            UICol col = cols[i];
            col.is_selected = (i == selected_col);
            col.refresh();
        }
    }