Question by
drinkfood56 · Feb 15, 2021 at 11:07 AM ·
scripting problemscripting beginner
How can I make a float decrease when touched by a cube?
I'm semi-new to unity and I'm making an fps that has you shooting enemies before they touch you, but I'm having trouble finding a way to decrease my health variable. Any help?
Comment
Your answer
Follow this Question
Related Questions
I need Function to be in other script 1 Answer
Physics2D.OverlapCircle working in Unity but not in build 0 Answers
Get color from ColorPicker and apply it randomly on GameObject 0 Answers
Finishing up my 2D quiz game [Last Problem] 0 Answers
Is there any way to increase score with UI when I destroy an object? 0 Answers