In the previous tutorial, you used a Trigger to detect when Ruby touches a health collectible.
In this tutorial, you will use the same knowledge to damage the character when they’re in a certain zone.
You will also extend that to enemies that will move back and forth, thanks to what you learned about Rigidbody components, using Colliders and not Triggers.
Want to learn more about 2D Game Development with Unity? Connect with an expert Unity dev for a live 1:1 lesson.