diff options
author | Roman Gräf <romangraef@gmail.com> | 2020-04-18 03:56:52 +0200 |
---|---|---|
committer | Roman Gräf <romangraef@gmail.com> | 2020-04-18 03:56:52 +0200 |
commit | ec3ebd9067c28beae82ef1c647707bd75e9c411a (patch) | |
tree | 05f43a39873ae065e5c2cf5cece1c335aee8d622 /buildings/base_building.gd | |
parent | ceb3a049b2a51ca7cdb082d5a56c26d7c6549283 (diff) | |
download | LDJam46-ec3ebd9067c28beae82ef1c647707bd75e9c411a.tar.gz LDJam46-ec3ebd9067c28beae82ef1c647707bd75e9c411a.tar.bz2 LDJam46-ec3ebd9067c28beae82ef1c647707bd75e9c411a.zip |
High quality content
Diffstat (limited to 'buildings/base_building.gd')
-rw-r--r-- | buildings/base_building.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/buildings/base_building.gd b/buildings/base_building.gd new file mode 100644 index 0000000..00d4f94 --- /dev/null +++ b/buildings/base_building.gd @@ -0,0 +1,14 @@ +extends Button +class_name BaseBuilding + + +func _pressed(): + if SaveState.coffee >= get_cost(): + SaveState.coffee -= get_cost() + _bought() + +func get_cost(): + pass + +func _bought(): + pass |