disconnect obsolete guest signal

This commit is contained in:
mightypanders 2021-06-25 22:12:36 +02:00
parent b312905c33
commit 84691422c3
2 changed files with 0 additions and 6 deletions

View File

@ -18,16 +18,12 @@ const MAX_SPAWN_TRIES = 50
onready var radius_guests = guests.get_child(0).exclusionZoneShape.shape.radius * 2 onready var radius_guests = guests.get_child(0).exclusionZoneShape.shape.radius * 2
export var max_guests = 10 export var max_guests = 10
func _on_Guest_picked_up(destinationColor,name):
print('Picked Up %s with name %s' % [destinationColor,name])
func _process(delta): func _process(delta):
$GUI2/HBoxContainer/Time/Background/Number.text = String(int($GameTime.time_left)) $GUI2/HBoxContainer/Time/Background/Number.text = String(int($GameTime.time_left))
func _ready(): func _ready():
dropOffPointListNode.set_colors() dropOffPointListNode.set_colors()
rng.randomize() rng.randomize()
print(radius_guests)
func _physics_process(delta): func _physics_process(delta):
if Input.is_action_just_pressed("ui_cancel"): if Input.is_action_just_pressed("ui_cancel"):
@ -67,7 +63,6 @@ func create_new_guest():
func _on_Playa_scored(value:int): func _on_Playa_scored(value:int):
spawn_tries = 0 spawn_tries = 0
print('Its a score of %s'% String(value))
player_score += value player_score += value
money_label.update_text(player_score) money_label.update_text(player_score)

View File

@ -1492,5 +1492,4 @@ margin_bottom = 712.354
[connection signal="scored" from="Playa" to="." method="_on_Playa_scored"] [connection signal="scored" from="Playa" to="." method="_on_Playa_scored"]
[connection signal="timeout" from="GuestTimer" to="." method="_on_GuestTimer_timeout"] [connection signal="timeout" from="GuestTimer" to="." method="_on_GuestTimer_timeout"]
[connection signal="picked_up" from="Guests/Guest" to="." method="_on_Guest_picked_up"]
[connection signal="timeout" from="GameTime" to="." method="_on_GameTime_timeout"] [connection signal="timeout" from="GameTime" to="." method="_on_GameTime_timeout"]