Why would disabling the pickup stop the coroutine from running?

hi,

I am referring to minute 2 - 2:35 of this lecture: https://www.gamedev.tv/courses/637539/lectures/11879457

Why would disabling the pickup stop the coroutine from running?

Thanks!

Hi soomon,

Since the WeaponPickup script is attached on a GameObject, if you disable that GameObject, then everything that comes with it will also be disabled, including the script that contains the coroutine.

2 Likes

yeah that indeed makes a ton of sense :smiley:
Thanks!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms