Example #1
0
    // open the delete files panel for the dataPath specified
    public void ShowDeletePanel()
    {
        ContinuousSaveController.continuousSaveActive = false;
        deletePanel.SetActive(true);
        DeleteFileCenterSnap deletecentersnap = FindObjectOfType <DeleteFileCenterSnap>();

        deletecentersnap.StartRepopulate(dataPath);
        savePanelGO.SetActive(false);
        DestroySaveList();
    }
Example #2
0
    // delete the selected file called from deleteconfirmationpanel OK button.
    public void DeleteFile()
    {
        ContinuousSaveController.continuousSaveActive = false;
        FileInfo fi = new System.IO.FileInfo(dataPath + "/" + deleteName + ".dat");

        UnityEngine.Debug.Log(fi);
        if (fi.Exists)
        {
            fi.Delete();
            fi.Refresh();
            while (fi.Exists)
            {
                System.Threading.Thread.Sleep(100);
                fi.Refresh();
            }
        }
        DeleteFileCenterSnap deletecentersnap = FindObjectOfType <DeleteFileCenterSnap>();

        deletecentersnap.StartRepopulate(dataPath);
        deleteConfirmPanel.SetActive(false);
    }
Example #3
0
    DeleteFileCenterSnap mycentersnap; // the center snap for the list to scroll and snap to.

    // Use this for initialization
    void Start()
    {
        // deleteConfirmPanel = GameObject.Find("Canvas/DeletePanel/DeleteConfirmPanel");
        saveFile     = FindObjectOfType <SaveFile>();
        mycentersnap = FindObjectOfType <DeleteFileCenterSnap>();
    }