Example #1
0
 public void OpenPanel(int index)
 {
     for (int i = 0; i < panels.Length; i++)
     {
         if (i != index)
         {
             ClosePanel(i);
         }
     }
     panels[index].SetActive(true);
     statsUI.Close();
     if (index == 1)
     {
         statsUI.LoadPartyPanels();
     }
 }