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(); }
void OnDestroy() { _instance = null; }