16 lines
356 B
C#
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);
|
|
}
|
|
}
|