예제 #1
0
 internal static void Callback(CustomEventData customEventData)
 {
     if (customEventData.type == "AssignPlayerToTrack")
     {
         Track track = GetTrack(customEventData.data);
         if (track != null)
         {
             PlayerTrack.AssignTrack(track);
         }
     }
 }
 internal static void Callback(CustomEventData customEventData)
 {
     if (customEventData.type == ASSIGNPLAYERTOTRACK)
     {
         NoodlePlayerTrackEventData noodleData = (NoodlePlayerTrackEventData)NoodleEventDatas[customEventData];
         Track track = noodleData.Track;
         if (track != null)
         {
             PlayerTrack.AssignTrack(track);
         }
     }
 }
예제 #3
0
 internal static void Callback(CustomEventData customEventData)
 {
     if (customEventData.type == ASSIGNPLAYERTOTRACK)
     {
         NoodlePlayerTrackEventData?noodleData = TryGetEventData <NoodlePlayerTrackEventData>(customEventData);
         if (noodleData != null)
         {
             Track track = noodleData.Track;
             if (track != null)
             {
                 PlayerTrack.AssignTrack(track);
             }
         }
     }
 }