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

30 lines
736 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace MenuSystem {
public class ConfirmLoad : MenuOption {
//public access members
public SaveFileManager.SaveSlot saveData;
public string fileName;
void Update() {
if (transform.childCount > 0) {
//BUGFIX: I don't know why this is disabled here
transform.GetChild(0).GetComponent<Image>().enabled = true;
}
}
public override void Execute() {
SaveFileManager.saveSlotFileName = fileName;
SaveFileManager.LoadedSaveSlot = saveData;
SceneManager.LoadScene("Gameplay");
}
public override void Scroll(float x) {
//DO NOTHING
}
}
}