示例#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;
 }
示例#2
0
 public NoClipsFoundException(AudioPlayer audioPlayer) : base($"No clips found in Audio Player `{audioPlayer.name}`.")
 {
     AudioPlayer = audioPlayer;
 }
示例#3
0
 public ClipNullException(AudioPlayer audioPlayer, int clipIndex) : base($"Audio Player `{audioPlayer.name}` has a null clip at `{clipIndex}`")
 {
     ClipIndex   = clipIndex;
     AudioPlayer = audioPlayer;
 }