Now
to implement player health that interacts with the UI to do this create a C#
script in the script folder then drag the script onto the player in the
hierarchy, in the components section of the player in the player health section
you will see Health slider and damage image with None in the boxes next to them
you need to click on the health slider in the hierarchy and drag it onto the
box with none which will link the health slider component with the player
health script do the same with the damage image box below by dragging the
damage image from the hierarchy into the damage image none box to link it.
Temp Looking at some of the simpler survival shooters i came across a game called nightmare in which you controll a small person armed with an assault rifle and have to hold off waves of enemies consisting of Zombunnies, Zombears and Zombephants and the player is rewarded with a score for killing the enemies. The Zombunnies are worth 10 points with the Zombears being worth 20 and since the Zombephant is a much larger and tougher target it is worth 50 meaning the tougher the enemy the more points they are worth.
Comments
Post a Comment