Question by
Zitoox · Jul 01, 2016 at 11:16 PM ·
scripting beginnercollision detectiondamagehud
on collision, cause damage script
I have a Canvas with a hud that show the player's health. Let's suppose it's in 150. I want to make a script that, when a specific prefab trigger my enemy's collider, the health hud changes to 149, but i never tryed to make something like that before, and i am not that good at scripting. So, how can i start? Is there a tutorial? I need this to be exactly as i said.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612084059im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Interesting Script Problem 1 Answer
Damage calculation with various weapons 1 Answer
Preview damage on Health Bar 0 Answers