Beispiel #1
0
 public ClipNotFoundException(AudioPlayer audioPlayer, string clipName) : base($"Clip with name `{clipName}` was not found in Audio Player `{audioPlayer.name}`.")
 {
     AudioPlayer = audioPlayer;
     ClipName    = clipName;
 }
Beispiel #2
0
 public NoClipsFoundException(AudioPlayer audioPlayer) : base($"No clips found in Audio Player `{audioPlayer.name}`.")
 {
     AudioPlayer = audioPlayer;
 }
Beispiel #3
0
 public ClipNullException(AudioPlayer audioPlayer, int clipIndex) : base($"Audio Player `{audioPlayer.name}` has a null clip at `{clipIndex}`")
 {
     ClipIndex   = clipIndex;
     AudioPlayer = audioPlayer;
 }