Game Interfaces

Game Interfaces connect our modules to your game logic. These settings allow you to define how our modules should handle functionalities like storing data or rewarding the playe

Implementation Guide

Settings Manager

Note: Only interfaces required by Lion modules currently installed in your project will appear in this tab.

  1. Open Settings: In Unity’s top menu, go to LionStudios → Settings Manager

  2. Navigate to the "Game Interfaces" Tab

  3. Select Assets by clicking the buttons

  4. Or use the Create New button to create new interface implementations

Create New

In general, you will only need to do this for Rewards (or Transactions) and IAP interfaces.

For the other ones, the provided options are usually enough. If not, please let us know.

When None is selected, a Create New button will appear. Click it to generate a template class to implement this interface.

The template class will contain comments explaining what each function should do in your implementation.

The generated template for IAP Interface

When your implementation is complete, an Instantiate button will appear.

Click Instantiate to generate an asset with your implementation, and select it.


Interfaces

Storage

  • Purpose: Store and retrieve key‑value data (primitive types + objects serialized in JSON).

  • Provided options: Player Prefs, Encrypted Player Prefs, Firestore

  • Default: Player Prefs

Time

  • Purpose: Provide current UTC time for timed features (daily rewards, cooldowns).

  • Provided options: Local, LionServer, Firebase

  • Default: LionServer

Ads

  • Purpose: Display rewarded ads and check availability.

  • Default: Lion Ads

IAP

  • Purpose: Trigger and manage in‑app purchases with your chosen IAP backend.

  • Provided options: None. You must supply a custom implementation if this interface is required.

Rewards

  • Purpose: Animate and grant bundled rewards to the player.

  • Provided options: Explosion Animation, Popup

  • Default: Explosion Animation

Transactions

  • Purpose: Manage virtual‑currency or resource balances and provide UI targets for animations.

  • Provided options: None. You must supply a custom implementation if this interface is required.

Last updated