A common pattern to fetch components in collisions in Unity is to call GetComponent and then check if the result is null. Learn how to shortcut this using TryGetComponent
Want to learn more about a topic? Leave a comment and I'll make a video about it!