|
in this case a health pack, my main player has the variable var hitPoints = 100.0 and when an object takes the health down what script would i use to bring them back up?
(comments are locked)
|
|
Your player controller code could contain something like this:
Make a health package have a collider with isTrigger checked and a script like:
About the same script can be used for objects applying damage (bullets, traps, ...) only
(comments are locked)
|
