Lesson 59 – Trigger Colliders & Dealing Damage

In this lesson, we’ll set up a Trigger Collider that instantiates a random set of Enemies once it’s been activated. We’ll use a simple switch() statement – which is similar to an if() statement – to handle the conditional set of instantiation options in code. We will also create a DoDamage() method that we can access polymorphically whenever the player’s attack collides with an Enemy.

Members Only Content (Source Code, Quiz, Q&A)

This content is for Extended Support Package members only.
Log In Register