ajout de la scène du cockpit
This commit is contained in:
@@ -26,6 +26,7 @@ var is_animation_disappeared := false
|
||||
func _ready():
|
||||
hide()
|
||||
setup_energy_values()
|
||||
%EnergyPassDayInfo.hide()
|
||||
|
||||
func _process(delta):
|
||||
if recharging:
|
||||
@@ -35,7 +36,6 @@ func _process(delta):
|
||||
max_energy_reached.emit()
|
||||
elif (new_current_energy != current_energy):
|
||||
%EnergyPassDayInfo.update(new_current_energy, max_energy, true)
|
||||
print("Call energy info with %d/%d" % [new_current_energy, max_energy])
|
||||
current_energy = new_current_energy
|
||||
|
||||
func setup_energy_values():
|
||||
@@ -52,7 +52,6 @@ func pass_day_animation():
|
||||
is_animation_disappeared=false
|
||||
|
||||
%EnergyPassDayInfo.update(from_energy, max_energy, false)
|
||||
print("Call energy info with %d/%d" % [from_energy, max_energy])
|
||||
|
||||
await appear()
|
||||
is_animation_appeared = true
|
||||
|
||||
Reference in New Issue
Block a user