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