Tom Atom Posted July 4, 2018 Share Posted July 4, 2018 Hi, Scenes have property game (Phaser.Game), but it seems to be undefined all the time (in preload, create or update methods of scene). Doc says: "This property will only be available if defined in the Scene Injection Map." and I can see it in default injection map ... but still undefined. On the other side, there is sys property (object) with game property in it. I can get game reference like this.sys.game instead of this.game. Is it correct to use this.sys.game? Why is not this.game working? Is it some leftover from older version? Link to comment Share on other sites More sharing options...
rich Posted July 5, 2018 Share Posted July 5, 2018 Yeah it shouldn’t be exposed at all. I’ll remove it from the map. It should almost never be used. Link to comment Share on other sites More sharing options...
Recommended Posts