LevelUp

Introduction

  • Backend Name: level_up

  • Description: 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 linked with “experience points” earned during game play.

  • Event Type: Game

  • Priority: P5

Parameters

NameTypeSelectBackend nameDescription
additionalDataDictionaryOptionaladditional_dataAny additional information
levelUpNamestringRequiredlevel_up_nameThe level up name

Code example

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