First_Person_Slapper/Levels/Level06.gd
2022-10-12 15:34:40 -04:00

25 lines
431 B
GDScript

extends Spatial
var enemycount = 1
onready var NEXTSCENE = "res://Levels/Level07.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var FirstTime = $Timer
onready var HUD = $"Player/HUD/MenuLayer/Start"
func _ready():
FirstTime.start()
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)