Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi. You need to connect events to your own functions on OnEnable and remove them OnDisable.

private void OnEnable()
{
    WMBroadcaster.OnMonetizationStart += OnMonetizationStart;
    WMBroadcaster.OnMonetizationProgress += OnMonetizationProgress;
}
    
private void OnDisable()
{
    WMBroadcaster.OnMonetizationStart -= OnMonetizationStart;
    WMBroadcaster.OnMonetizationProgress -= OnMonetizationProgress;
}

In this code. right right side of operators are your own private methods.

https://learn.unity.com/tutorial/events-uh see here for more info about delegates and events.