Skip to content

1.0.3

Choose a tag to compare

@Killers0992 Killers0992 released this 23 Dec 14:52
· 35 commits to master since this release

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;
        });