Пример #1
0
 public void RefreshSaveSlotButtons()
 {
     slot1.RefreshInfo();
     slot2.RefreshInfo();
     slot3.RefreshInfo();
     slot4.RefreshInfo();
     if (GameControl.saveSlot1 != null)
     {
         clearSlot1Button.SetActive(true);
     }
     else
     {
         clearSlot1Button.SetActive(false);
     }
     if (GameControl.saveSlot2 != null)
     {
         clearSlot2Button.SetActive(true);
     }
     else
     {
         clearSlot2Button.SetActive(false);
     }
     if (GameControl.saveSlot3 != null)
     {
         clearSlot3Button.SetActive(true);
     }
     else
     {
         clearSlot3Button.SetActive(false);
     }
     if (GameControl.saveSlot4 != null)
     {
         clearSlot4Button.SetActive(true);
     }
     else
     {
         clearSlot4Button.SetActive(false);
     }
 }