using Managers; using UnityEngine; namespace UI { public class LoadMenuUIController : MonoBehaviour { // Start is called before the first frame update public GameObject SaveList; public GameObject DeleteSaveButton; private void Start() { // get all the saves from the save manager // and display them in the list of saves var saveManager = FindObjectOfType(); if (saveManager != null) { var saves = saveManager.GetSaves(); foreach (var save in saves) Debug.Log(save.Name); } } // Update is called once per frame private void Update() { } public void OnClick_CloseButton() { Debug.Log("Load menu close button"); gameObject.SetActive(false); } public void OnClick_DeleteSaveButton() { Debug.Log("Delete save button"); } public void OnClick_Save() { Debug.Log("Save button"); } } }