private IEnumerator Start() { _Musics = new List <string>(); _ShowNavigator = true; _Grooveshark = GameObject.FindGameObjectWithTag("GroovesharkAPI").GetComponent <Grooveshark>(); _GroovesharkGUI = gameObject.AddComponent <GroovesharkGUI>(); _GroovesharkGUI.enabled = UseGrooveshark; //_GroovesharkGUI = new GroovesharkGUI(_Grooveshark); if (!Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero)) { _IsEnabled = false; } else { _IsEnabled = true; _CurrentDirectory = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)); } //yield return StartCoroutine(_Grooveshark.PingService()); yield return(StartCoroutine(_Grooveshark.StartSession())); yield return(StartCoroutine(_Grooveshark.GetCountry())); //yield return StartCoroutine(_Grooveshark.GetStreamKeyStreamServer(new Action<string>(StartGroovesharkStream))); }
void Start() { _Grooveshark = GameObject.FindGameObjectWithTag("GroovesharkAPI").GetComponent <Grooveshark>(); _BassManager = GameObject.FindGameObjectWithTag("BassManager").GetComponent <BassManager>(); _results = new List <SearchResult>(); }
void Start() { _GroovesharkAPI = GameObject.FindGameObjectWithTag("GroovesharkAPI").GetComponent <Grooveshark>(); StartCoroutine(_GroovesharkAPI.StartSession()); }