ProjectSquareBall/Assets/Scripts/Prep/UI/OnContentFileSelected.cs
2024-09-04 18:39:41 +05:30

16 lines
356 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class OnContentFileSelected : MonoBehaviour
{
void Awake(){
GetComponent<Button>().onClick.AddListener(OnClicked);
}
void OnClicked(){
SaveLoadPrep.instance.OnFileSelected(GetComponentInChildren<Text>().text);
}
}