Compare commits
No commits in common. "cb0dc0346216f77b4e9f14bee7da8c66e0695e54" and "486a32a81a17af265aded5998855816c68aefdc1" have entirely different histories.
cb0dc03462
...
486a32a81a
1 changed files with 1 additions and 4 deletions
|
@ -24,10 +24,7 @@ func _process(delta: float) -> void:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func set_life(pv : int) -> void :
|
func set_life(pv : int) -> void :
|
||||||
var step = 1
|
for i in range(life, pv):
|
||||||
if pv > life :
|
|
||||||
step = -1
|
|
||||||
for i in range(life, pv, step):
|
|
||||||
update_life(i)
|
update_life(i)
|
||||||
update_life(pv)
|
update_life(pv)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue