#C# - How to pass custom Resources to a signal method
1 messages · Page 1 of 1 (latest)
I need to put a number in the signal?
No, I mean does the signal emit the player and the enemy?
As in, I need to type the signal like so in the Godot GUI "_on_attack_1_pressed(BasePlayer player, BaseEnemy enemy)
No, that's not the signal, that is the function it should be connected to
The signal is "pressed"
I don't think you can pass in those resources with the gui
So you will have to do it with code
Godot Engine documentation
In this lesson, we will look at signals. They are messages that nodes emit when something specific happens to them, like a button being pressed. Other nodes can connect to that signal and call a fu...