Tag for enemy instead CombatTarget class?

In this video we can see how to use tag for player and put in the code. Could we put tag for enemy instead of creation of class CombatTarget?

If yes, please are you able to explain why we used CombatTarget class instead of tag? For me it looks less complicated and less expensive to use tags instead of using class in this situation.

Later in the course, we’re actually going to be using that CombatTarget to direct the player’s action Stay tuned in the Polish section when we introduce IRaycastables.

1 Like

Privacy & Terms