Пример #1
0
 public void ResetProgress(GameObject button, CharacterPanel characterPanel)
 {
     resetSafety--;
     Debug.LogWarning("!!! - Reset in " + resetSafety);
     if (resetSafety == 0)
     {
         if (File.Exists(defaultPath))
         {
             File.Delete(defaultPath);
             characterPanel.Clear();
             Load();
         }
         resetSafety = 3;
         button.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = "Reset (" + resetSafety + ")";
     }
     else
     {
         button.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = "Reset (" + resetSafety + ")";
     }
 }