MissionCompleted
The player completed a mission
missionType
string
Optional
mission_type
Indicate the type of the mission, level, task, quests etc.
missionName
string
Optional
mission_name
Specifies the level grouping (e.g., season, bundle, pack). A single missionID may be paired with different missionName parameters.
missionID
int
Required
mission_id
The unique ID for the mission.
userScore
int
Required
user_score
The player's score
missionAttempt
int?
Optional
mission_attempt
Number of times user has played Game Level N (second play of Game Level N = 2)
additionalData
Dictionary<string, object>
Optional
additional_data
Any additional information
reward
Reward
Required
reward
If rewards are given to the player at the time of the event, the reward object is used to track the items (e.g., boosters, coins, gems, etc) or currencies gifted or earned by the player to the player.
Code examples:
Product product = new Product();
List<VirtualCurrency> virtualCurrencies = new List<VirtualCurrency>
{ new VirtualCurrency("coins", "gold", 100) };
product.virtualCurrencies = virtualCurrencies;
Reward reward = new Reward(product);
LionAnalytics.MissionCompleted("bossFight","fight_level_12",3, 67, 4, reward);
Last updated