First commit
This commit is contained in:
20
generator/currency_generator.gd
Normal file
20
generator/currency_generator.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
class_name CurrencyGenerator
|
||||
extends Node
|
||||
|
||||
@export var currency: GameState.CurrencyType
|
||||
@export var data: CurrencyGeneratorData
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func _on_pressed() -> void:
|
||||
match currency:
|
||||
GameState.CurrencyType.gold: GameState.add_gold(BigNumber.new(1, 0))
|
||||
GameState.CurrencyType.gems: GameState.add_gems(BigNumber.new(1, 0))
|
||||
_: print("c")
|
||||
pass
|
||||
Reference in New Issue
Block a user