UCL-VR / ubiq

Other
98 stars 34 forks source link

Fixed issue with VoipAvatar not correctly checking if it was destroyed #29

Closed TheBv closed 1 year ago

TheBv commented 1 year ago

When Unity destroy as GameObject this evaluates to null (at least in Unit version 2021.X) hence the check for !enabled throws an error. Adding a simple null check circumvents this.