Clear some components after defeat
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dd3ed03212
commit
f86d6295d5
6 changed files with 37 additions and 1 deletions
|
@ -105,6 +105,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
|
@ -104,6 +104,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
|
@ -104,6 +104,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
|
@ -104,6 +104,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
|
@ -104,6 +104,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
|
@ -104,6 +104,12 @@ func on_enemy_entered_base(enemy):
|
|||
|
||||
if data['health'] < 1:
|
||||
get_tree().paused = true
|
||||
|
||||
# Clear some components
|
||||
$CanvasLayer/TowerMenu.hide()
|
||||
$CanvasLayer/GameStats.hide()
|
||||
$CanvasLayer/GameDuration.hide()
|
||||
|
||||
$CanvasLayer/Defeat.show()
|
||||
$CanvasLayer/Defeat/AudioStreamPlayer.play()
|
||||
|
||||
|
|
Loading…
Reference in a new issue