IObservable <string> GetSheet(string name) { string path = PlayerPrefs.GetString(name); if (string.IsNullOrEmpty(path)) { return(fileBrowse.LoadFile()); } else { return(Observable.Return(path)); } }
IObservable <string> GetSheet(string name) { string path = PlayerPrefs.GetString(name); if (string.IsNullOrEmpty(path)) { return(fileBrowse.LoadFile()); } else { //Subject<string> sub = new Subject<string>(); //sub.OnNext(path); //sub.OnCompleted(); //return sub.AsObservable(); return(Observable.Return(path)); } }