This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2019-03-08 09:54:14 +11:00

23 lines
493 B
C#

using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace MenuSystem {
public class ConfirmDelete : MenuOption {
//public access members
public string fileName;
public GameObject loadCanvas;
public GameObject confirmationCanvas;
public override void Execute() {
File.Delete(fileName);
confirmationCanvas.SetActive(false);
loadCanvas.SetActive(true);
}
public override void Scroll(float x) {
//DO NOTHING
}
}
}