Example #1
0
 private void GetDataTypeCallback(string url, Type dataType)
 {
     if (dataType == typeof(SCUser))
     {
         SCManager.GetUser(url, GetUserCallback);
     }
     else if (dataType == typeof(SCTrack))
     {
         SCManager.GetTrack(url, GetTrackCallback);
     }
 }
Example #2
0
 public void PlayTrack()
 {
     SCManager.GetTrack(input.text, PlayTrackDataCallback);
     SCManager.GetTrackAudioClip(input.text, GetTrackAudioClipCallback);
 }