Пример #1
0
    public void OnClick_NewGameOrOpenPopup()
    {
        if (JSONSaveManager.SaveFileExists(saveSlotFileName))
        {
            savePopup.SetActive(true);
            Debug.Log("Save file already exists, overwrite?");

            return;
        }

        ActivateElementSelectionPanel();
    }
    public void OnClick_LoadIfSlotExists()
    {
        if (JSONSaveManager.SaveFileExists(saveSlotFileName))
        {
            Debug.Log("load save file logic cause save file exists yes");

            LoadSaveFile();

            return;
        }

        Debug.Log("save file is m.t.");
        saveSlotText.text = emptySaveSlotText;

        if (!downTimer.enabled)
        {
            downTimer.enabled = true;
        }
        downTimer.ResetTimer();
    }