ajout des sfx de recharge et de mouvements
This commit is contained in:
@@ -32,6 +32,7 @@ script = ExtResource("2_bhfpo")
|
||||
|
||||
[node name="PassDayInfo" type="VBoxContainer" parent="." unique_id=833110506]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
@@ -36,6 +36,7 @@ func _process(delta):
|
||||
if new_current_energy > max_energy:
|
||||
max_energy_reached.emit()
|
||||
elif (new_current_energy != current_energy):
|
||||
AudioManager.play_sfx("Recharge%d" % new_current_energy)
|
||||
%EnergyPassDayInfo.update(new_current_energy, max_energy, true)
|
||||
current_energy = new_current_energy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user