using UnityEngine;
public class UIpopupList_For_Editor : MonoBehaviour {
private UIPopupList popupList;
public morphHandler theMorphHandler;
void Awake()
{
UIPopupList popupList = GetComponent<UIPopupList>();
EventDelegate.Add(popupList.onChange, SetSliderWindow);
}
public void SetSliderWindow ()
{
Debug.Log("Selection: " + UIPopupList.current.value);
theMorphHandler.SetupMorphSliders (UIPopupList.current.value);
}
}