#C# - How to pass custom Resources to a signal method

1 messages · Page 1 of 1 (latest)

novel cipher
#

The method name looks correct, does the number of parameters match the number in the signal?

royal chasm
#

I need to put a number in the signal?

novel cipher
#

No, I mean does the signal emit the player and the enemy?

royal chasm
#

As in, I need to type the signal like so in the Godot GUI "_on_attack_1_pressed(BasePlayer player, BaseEnemy enemy)

novel cipher
#

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