示例#1
0
        public static void Show(DirectoryInfo levelDir, FilterCallback filter, SelectionCallback callback)
        {
            //ListSelector ls = null;
            if (_instance == null)
            {
                _instance = ScriptableWizard.DisplayWizard <LevelPickerWizard>("Select level");
            }
            _instance._viewOnly = callback == null;
            _instance._levelDir = levelDir;
            _instance._filter   = filter;
            _instance._callback = callback;

            _instance.Refresh();

            _instance.Focus();
        }
示例#2
0
 void OnDestroy()
 {
     _instance = null;
 }