I'm not sure you understood what I want to accomplisse, but this doesn't work as I wrote.
What I want is:
keys script:
func _on_keys_pressed() -> void:
var temp = self.get_child(0).text
print(temp)
Utils.current_char = temp
detect_block() -> *this is the function from board script I want to add*
From my understanding you proposed this:
board script:
var keys
onready var key_scene = preload("res://keys.tscn")
func _ready() -> void:
keys = key_scene.instance()
func _on_keys_pressed():
keys.detect_block()
The above doesn't work. The actions which are on keys script for pressed button work but the "keys.detect_block()" function from board doesn't trigger and doesn't give any error. Just ignored.