1using NaughtyAttributes;
12 [AddComponentMenu(
"Ryle Radio/Radio Interactor")]
19 [Multiselect(
"TrackNames")]
25 [Foldout(
"Advanced Settings"), SerializeField]
31 [Foldout(
"Advanced Settings"), SerializeField]
67 Debug.LogWarning($
"No players with ID {id} are currently playing, and so none have been stopped!");
82 player.Paused = !player.Paused;
86 Debug.LogWarning($
"No players with ID {id} are currently playing, and so none have been stopped!");
101 player.Paused =
true;
105 Debug.LogWarning($
"No players with ID {id} are currently playing, and so none have been stopped!");
120 player.Paused =
false;
124 Debug.LogWarning($
"No players with ID {id} are currently playing, and so none have been stopped!");
139 player.ResetProgress();
143 Debug.LogWarning($
"No players with ID {id} are currently playing, and so none have been stopped!");
A sister class to RadioComponent that allows a component to access specific tracks on a RadioOutput i...
RadioOutput output
The RadioOutput to get tracks from.
void DoTrackAction(int _trackMask, Action< string > _action)
Performs an action on any selected tracks using a MultiselectAttribute.
A component that performs actions on a radio, such as playing tracks, stopping them,...
void Pause()
Pauses a player on each affectedTracks.
bool debugAll
Whether or not extra debug information should be printed from this component.
void FlipPause()
Pauses/unpauses a player on each affectedTracks.
RadioOutput.MultiplePlayersSelector playerSelector
The method by which this interactor selects a RadioTrackPlayer when one is needed....
void PlayOneShot()
Plays affectedTracks with one-shot players.
int affectedTracks
The tracks that this interactor applies to.
void Unpause()
Unpauses a player on each affectedTracks.
void ResetProgress()
Resets the progress of a player on each affectedTracks.
void PlayLoop()
Plays affectedTracks with looping players.
void Stop()
Stops a player on each affectedTracks.
MultiplePlayersSelector
The method by which a RadioTrackPlayer is chosen from this output. Really only matters when you're pl...
A class that plays a certain RadioTrack at runtime. It's created newly for each track on each RadioOu...
Base interfaces and classes for components, e.g: track accessors, output accessors.
Components to be placed on scene objects, e.g: Outputs, Broadcasters, Observers.
Tracks to be used on a radio- includes base classes.