Skip to content

Signals and reported nonexistent signals #477

Answered by migueldeicaza
lorenalexm asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is that you are attempting to connect to a signal that is declared on the type Player on the GameInterface method.

Instead, you need to connect to the player, something like:

myPlayer.connect (signal: Player.coinCollected, to: self, method: "onConCollected")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lorenalexm
Comment options

Answer selected by lorenalexm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants