Unity Game Tutorials - Platform Game - Part 9 - Damage

Опубликовано: 20 Октябрь 2024
на канале: Scripting Is Fun
608
20

We add the ability for the player's lasers to damage the enemy and the enemy to damage the player when touched.

Topics Covered Include: OnTriggerEnter2D, OnCollisionEnter2D, collisions, health, damage, SetActive, Destroy, and more...

Special thanks to subscriber Chris Fritz for creating the sprites for this series - You can download them at http://scriptingisfun.com/IMG_0235

Music: Weird Night by William Rosati