Question by
Stonemass · Dec 27, 2020 at 01:37 PM ·
scripting problemvariablescore
always the same problem, how to add 1 valor correctly not overtime ?
is always the same, i put the counter variable when the object is destroyed to add 1 to score. this call is in update, coz we must check everytime when this comes right ? so...when the object is destroyed, the counter add 1 overtime.....so i get a lot of " points " inside this variable. What is the correct method to call one function or variable only when something happend ? Thanks
Comment
Your answer
