bodypartfighter/UI/WinScreenScript.gd
Leon Palluch 7c3fd134e7 mmmhh
2020-02-01 16:54:53 +01:00

24 lines
445 B
GDScript

extends Control
export(NodePath) var labelPath
export(NodePath) var continuePath
signal build_body()
var _playerWonLabel
var _continueButton
func _ready():
_playerWonLabel = get_node(labelPath) as Label
_continueButton = get_node(continuePath) as Label
func set_win_message(player_id):
_playerWonLabel.text = "Player " + str(player_id + 1) + " is victorious!"
func _on_Continue_pressed():
print("test2")
emit_signal("build_body")