예제 #1
0
 private void ShowOnlyActivePanel()
 {
     // Debug.Log($"ShowOnlyActivePanel:{_activeWindow.Value}");
     // Debug.Log($"CharacterPanel:{CharacterPanel}, BattlePanel:{BattlePanel},{BattlePanel.enabled},{BattlePanel.name}");
     if (_activeWindow.Value == EnumMainWindow.Character)
     {
         CharacterPanel.Show();
     }
     else
     {
         CharacterPanel.Hide();
     }
     if (_activeWindow.Value == EnumMainWindow.Equip)
     {
         EquipmentPanel.Show();
     }
     else
     {
         EquipmentPanel.Hide();
     }
     if (_activeWindow.Value == EnumMainWindow.Battle)
     {
         BattlePanel.Show();
     }
     else
     {
         BattlePanel.Hide();
     }
     if (_activeWindow.Value == EnumMainWindow.Spells)
     {
         SpellsPanel.Show();
     }
     else
     {
         SpellsPanel.Hide();
     }
     if (_activeWindow.Value == EnumMainWindow.Talents)
     {
         TalentsPanel.Show();
     }
     else
     {
         TalentsPanel.Hide();
     }
 }