Пример #1
0
        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();
        }
Пример #2
0
 void OnDestroy()
 {
     _instance = null;
 }