Ejemplo n.º 1
0
        IObservable <string> GetSheet(string name)
        {
            string path = PlayerPrefs.GetString(name);

            if (string.IsNullOrEmpty(path))
            {
                return(fileBrowse.LoadFile());
            }
            else
            {
                return(Observable.Return(path));
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }