Godot Version
v4.2.1.stable.mono.official [b09f793f5]
Question
I have two signals:
[Signal] public delegate void DamageTakenEventHandler(AttackInfo info);
[Signal] public delegate void StaminaConsumedEventHandler(float amount);
And I basically want functions connected to modify the value that is passed in, for example
float stam = 10f;
EmitSignal(SignalName.StaminaConsumed, stam);
//function that receives the signal halves stam
GD.Print(stam); // stam is equal to 5
My first tought was to pass a pointer, but it seems that it isn’t possible in godot. Is there an alternative?