1.0.3
Added:
- Now you can provide condition while creating AudioPlayer which will be used for sending audio to specific people defined in "condition" property
Example code ( anyone who is spectator will be able to hear this audio ):
AudioPlayer audioPlayer = AudioPlayer.Create($"GlobalAudio", condition: (hub) =>
{
if (hub.roleManager.CurrentRole.RoleTypeId == PlayerRoles.RoleTypeId.Spectator)
return true;
return false;
});