Signal Source #
signal signal_test
func _process(delta):
if(true): # Set the condition for the signal to be emitted inside the if statement
signal_test.emit() # Emit the signal
return deltaSignal Target #
func _ready():
scene_source.signal_test.connect(on_signal_test)
func on_signal_test():
# Write your code here
pass