cocos-pnp
cocos-pnp copied to clipboard
How Can I Send Events On Platforms
How can I trigger events like starting a level, ending it, or opening the market? I have a ".adapterrc" file like the one below, but I don't know how to run events through TypeScript.
{
"buildPlatform": "web-mobile",
"orientation": "portrait",
"enableSplash": true,
"injectOptions": {
"AppLovin": {
"head": ""
}
}
}
If you are only calling relevant methods within the business scenario, you just need to add them to the business code. If it requires platform audit verification, inject similar global methods in the relevant networks.