Closed TheBv closed 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.
this
null
!enabled
When Unity destroy as GameObject
this
evaluates tonull
(at least in Unit version 2021.X) hence the check for!enabled
throws an error. Adding a simple null check circumvents this.