mirror of
https://github.com/csd4ni3l/fishy-fingers.git
synced 2026-03-10 17:09:15 +01:00
7 lines
226 B
GDScript
7 lines
226 B
GDScript
extends TextureButton
|
|
|
|
func _pressed() -> void:
|
|
if Globals.coins >= Globals.TOUCAN_PRICE * (Globals.toucan_upgrades + 1):
|
|
Globals.coins -= Globals.TOUCAN_PRICE * (Globals.toucan_upgrades + 1)
|
|
Globals.toucan_upgrades += 1
|