예제 #1
0
    public void checkIfDeleteSavefile()
    {
        nTimesPressedDeleteButton++;
        Text deleteText = GameObject.Find("FinalDeleteButton").GetComponentInChildren <Text>();

        deleteText.text = TextScript.get(TextScript.Sentence.DELETE_BUTTON) + " (" + nTimesPressedDeleteButton + ")";

        if (nTimesPressedDeleteButton >= 7)
        {
            Savegame.deleteSaveFile();
        }
    }