Self Study Module 4


Enemies are spawning or instantiating at a designated area by an empty game object. They are then "finding the player's tag" and through the use of the Move towards function in unity the enemies are moving toward the player's position in the world space. Once the enemies collide with the player they start a unity event which both destroys the enemy object which collided with the player and lowers the player's health by 1. If the player finds the health packs around the world and collides with those the player starts a different unity even which awards the player with 5 health. The game ends when the players health drops below 1 which switches the screen to a Game over canvas.

Leave a comment

Log in with itch.io to leave a comment.