Skip to main content
Version: 5.7.0

IncrementExperiencePoints

Increments the user's experience. If the player goes up a level, the new level details will be returned along with a list of rewards.

ServiceOperation
playerStatisticsUPDATE

Method Parameters

ParameterDescription
xpValueThe amount to increase the user's experience by

Usage

http://localhost:3000
int xpValue = 1;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlayerStatisticsService.IncrementExperiencePoints(xpValue, successCallback, failureCallback);
JSON Response
{
"statisticsExceptions": {},
"milestones": {},
"experiencePoints": 110,
"quests": {},
"experienceLevel": 1,
"statistics": {
"LIVES": 7
}
}