Game Event Management Module is responsible for handling all game events that are defined by the developer. We have predefined Game Event Types like level start but you can define Custom Core Game Events or Custom Tracking Events. By using this module you can subscribe to a Game Event and then you can dispatch that Game Event on proper location in your game code and then your subscribed callbacks will be notified and called. This Module is also being used for Analytics Management Module for getting notified about the events to be tracked. So If you do not dispatch a game event on proper location it will not be tracked. Every game event has a parameter of string array which can be parsed to certain strong types before we can send them to tracking platform or before you can use them in your game code. There is no remote config or context settings for this module.
Here is the list of automatically tracked events
Consent Settings Button Clicked
Consent Popup Opened
Rewarded Ad Requested
Rewarded Ad Loaded
Rewarded Ad Failed
Rewarded Ad Triggered
Rewarded Ad Impression
Rewarded Ad Clicked
Rewarded Ad Reward
Rewarded Ad Dismissed
Interstitial Ad Requested
Interstitial Ad Failed
Interstitial Ad Triggered
Interstitial Ad Impression
Interstitial Ad Clicked
Interstitial Ad Dismissed
Here is the list of integration events that developers required to place inside their code for certain tracking events to work
NewTrackingEvent(string eventID, List parameters)
this can be used for custom core game events like a crash happened etc.. event type should be given thru event data.
StartLevel(int currentLevel, int playerCoins, string args = null)
Call this function whenever the player starts into a new level.
FinishLevel(bool levelSuccess, int currentLevel, int playerCoins, float levelProgressRatio = 1f, string args = null)
Call this function whenever the player finishes into a new level.
SetLevelProgress(int currentLevel, float levelProgressRatio = 1f, string args = null)
Call this function whenever a player's progression for a level is changed. Setting level progression ratio to 1 means level is finished and to 0 means level is just started.
TrackLevelProgress(int currentLevel, float levelProgressRatio = 1f, string args = null)
Call this function when you want to track a certain key progression in a game.
Call this function when a player skips a level by watching a rewarded ad video.
Call this function when a player continues a level by watching a rewarded ad video.
Updated over 1 year ago