You can also call these functions directly in the game, this is just something i stole off the block: game.network.addEnterWorldHandler(() => { game.ui.components.MenuShop.onTwitterFollow(); game.ui.components.MenuShop.onTwitterShare(); game.ui.components.MenuShop.onFacebookLike(); game.ui.components.MenuShop.onFacebookShare(); game.ui.components.MenuShop.onYouTubeSubscribe(); });
You can also call these functions directly in the game, this is just something i stole off the block:
game.network.addEnterWorldHandler(() => {
game.ui.components.MenuShop.onTwitterFollow();
game.ui.components.MenuShop.onTwitterShare();
game.ui.components.MenuShop.onFacebookLike();
game.ui.components.MenuShop.onFacebookShare();
game.ui.components.MenuShop.onYouTubeSubscribe();
});