Template: Game Shop¶
Integrate a universal game shop into any game using this versatile template.
Getting Started¶
Follow these steps to implement the shop in your project:
-
Add Shop Template: Integrate the Shop Template into your Balancy project.
-
Configure Game Store:
- Navigate to the Game Store section.
- Select My Shop from the package.
-
Deploy Project:
- Deploy your project for the changes to take effect.
-
Accessing Source Code:
- Download the latest package and import it into your game.
- Alternatively, clone the complete Unity project from our repository.
-
Testing the Shop:
- Using BalancyShopScene:
- In the Launcher game object, set your project's Api Game Id and Public Key.
- Start the scene.
- Using BalancyShopGameView prefab:
- Register the listener:
ExternalEvents.RegisterSmartObjectsListener(new BalancyShopSmartObjectsEvents());
. - Link to the DemoUI script on the prefab.
- Follow our initialization example.
- Play the scene.
- Register the listener:
- Using BalancyShopScene:
-
Final Outcome:
- The complete shop should be visible and functional in your game environment.