using UnityEngine;
[RequireComponent
(typeof(UIPopupList
))] public class SavedSelection : MonoBehaviour
{
public string selection;
UIPopupList mList;
void Start ()
{
mList = GetComponent<UIPopupList>();
EventDelegate.Add(mList.onChange, delegate () { selection = mList.value; });
}
}