ft (wip): molecular stage prey
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
extends Label
|
||||
|
||||
var counter := Test.new() # C++ class
|
||||
#var counter := Test.new() # C++ class
|
||||
|
||||
func _ready() -> void:
|
||||
text += str(counter.get_counter())
|
||||
#text += str(counter.get_counter())
|
||||
pass
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
#if Input.is_action_just_pressed("ui_accept"):
|
||||
counter.increment()
|
||||
var baseText := text
|
||||
baseText = baseText.left(baseText.length() - str(counter.get_counter()).length())
|
||||
text = baseText + str(counter.get_counter())
|
||||
#counter.increment()
|
||||
#var baseText := text
|
||||
#baseText = baseText.left(baseText.length() - str(counter.get_counter()).length())
|
||||
#text = baseText + str(counter.get_counter())
|
||||
|
||||
Reference in New Issue
Block a user