示例#1
0
 /// <summary>
 /// Handle the next button being triggered
 /// </summary>
 public void Next()
 {
     #if PLATFORM_LUMIN
     MLResult result = MLMusicService.Next();
     if (!result.IsOk)
     {
         Debug.LogErrorFormat("MLMusicServiceBehavior failed to advance to the next track, disabling script. Reason: {0}.", result);
         enabled = false;
         return;
     }
     #endif
 }
 /// <summary>
 /// Handle the next button being triggered
 /// </summary>
 /// <param name="triggerReading">Unused parameter</param>
 private void Next(float triggerReading)
 {
     MLMusicService.Next();
 }