Keewano Unity SDK
|
Keewano tracks game balance by defining the concept of an "item". An item is any countable element that can be given or taken within the game. Examples include:
It is important to note that these items are distinct from in-app purchases, which involve real money transactions.
To set or reset a specific item for the user, use KeewanoSDK.ReportItemsReset
.
KeewanoSDK.ReportItemsReset
is designed to both initialize items with default values and override existing values. This function is typically used during initial setup or in response to a support command to ensure the user's items are accurate and up-to-date.
To track game balance, rewards, or lost items, use the KeewanoSDK.ReportItemsExchange
. For example, a player spends 5 gold coins and a healing potion to get 1 vial of eternal life. Passing null as the to
parameter means that the user lost the items (e.g., a broken sword or payment to pass a bridge), while passing null to the from
parameter means the user gets a reward, such as collecting an item on the road or level win rewards.
When the player enters a Match3 level, they lose 1 attempt and 1 bomb booster, their moves are reset to 5, they perform 3 moves (each reducing the moves count by 1), and finally win 50 gold coins and a rainbow booster.
In this scenario, the support team issues a command to fix a user's balance, resetting it to a predefined default state.