Michael is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Michael @drjeats

Ah yes, I remember writing this comment and sighing heavily.

```
/*
There's a possible destruction order bug where this script is destroyed, but the ItemDropSystem script that starts this coroutine has not yet been destroyed, and the delay time elapses resulting in a null reference exception when accessing this script's Unity API. So if (this == null) then exit the coroutine.
*/

if (this == null) { yield break; }
```

· Web · 1 · 1