コード例 #1
0
        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)));
        }
コード例 #2
0
 void Start()
 {
     _Grooveshark = GameObject.FindGameObjectWithTag("GroovesharkAPI").GetComponent <Grooveshark>();
     _BassManager = GameObject.FindGameObjectWithTag("BassManager").GetComponent <BassManager>();
     _results     = new List <SearchResult>();
 }
コード例 #3
0
ファイル: LoginGUI.cs プロジェクト: SimoHayha/ProjectStream
    void Start()
    {
        _GroovesharkAPI = GameObject.FindGameObjectWithTag("GroovesharkAPI").GetComponent <Grooveshark>();

        StartCoroutine(_GroovesharkAPI.StartSession());
    }