LevelUp

The player leveled up. Note this is different than completing a game “level”. In this situation, if you game has the concept of “player levels”, use this event. Traditionally, “players levels” are

Name
Type
Select
Backend name
Description

levelUpName

string

Required

level_up_name

The level up name

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.

additionalData

Dictionary<string object>

Optional

additional_data

Any additional information

gift

Reward

Required

reward

The reward object which contains the name, type, amount and such.

Code example:

Product product = new Product();
product.virtualCurrencies = new List<VirtualCurrency>
    { new VirtualCurrency("coins", "gold", 100) };
LionAnalytics.LevelUp("sword_level_upgrade", new Reward(product));

Last updated