-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call an Angular function from inside Phaser scene #15
Comments
If you assign the phaser code from an angular controller, you should be able to call methods of that controller, example:
This is one option, exist a lot of alternatives (injecting the component context, using event emitters instead, etc) 👍 |
Can you make a example of how to inject the component context to a scene? |
Like this?
|
you saved my day! |
@jdnichollsc Thanks man |
haha you're welcome! 😁 |
Hi, I need to call an outside Angular function from inside a phaser scene. Can you please show me the way? I found this [https://www.html5gamedevs.com/topic/35570-calling-an-angular-function-from-within-phaser-3-scene/] :
But nothing said there have worked. It's claimed that it can be done with ion-phaser.
Thanks.
The text was updated successfully, but these errors were encountered: