This question was
closed Dec 06, 2020 at 03:32 PM by
JanZagar.
Really basic question...
Really basic question is countdown -= Time.deltaTime; the same as countdown = countdown - Time.deltaTime; Im new to coding so i don't know. Please help.
Comment
Best Answer
Answer by Dave-Carlile · Oct 30, 2015 at 04:23 PM
Yes it is. You can do the same with +=, *=, /= and so on.
Another handy shortcut operator for incrementing and decrementing is the ++ or -- operator...
x++; y--;
is the same as x = x + 1, or x += 1 y = y - 1 or y--
Follow this Question
Related Questions
Make the player go from a hook to another hook 0 Answers
if with two conditions not working 1 Answer
AnimationComplete() Error 0 Answers
Microsoft VisualStudio not showing quickcode/tooltips for unity. 0 Answers
When do i use new ? 1 Answer