public static void ShowWindow(List <T> data, Action <T> onObjectPicked, Predicate <T> predicate = null) { if (_instance == null) { _instance = CreateInstance <PickerWindow <T> >(); } _instance.Data = data; _instance.OnElementPicked = onObjectPicked; _instance.Filter = predicate; _instance.ShowUtility(); }
void OnDestroy() { _instance = null; }