PLAY SDK is divided into multiple modules. Every module has its own functionality. All modules depend on the RGNCore module. In the current version, the modules are distributed by using packages for Unity Package Manager.
Obligatory modules/packages
RGNCore
RGNSignInEmail
RGNSignInGuest
PLAY Unity Initializer
We created an initialization script to automatically setup every module. This script can manage automatically the guest signIn and the modules initialization. To use it, simply create an empty GameObject in your starting scene and attach RGNUnityInitilizer.cs to it. With this script, you don't need to manually build the RGNCore and modules.
Access modules
To access modules you can use the "I" instance provider property:
For example:
Modules namespaces
The modules are located in the RGN.Modules.[module_name] namespaces. Here you can find a full list of modules with the namespaces:
Modules List
RGN.Modules.Achievement
RGN.Modules.Currency
RGN.Modules.GameProgress
RGN.Modules.Inventory
RGN.Modules.Messaging
RGN.Modules.Store
RGN.Modules.UserProfile
RGN.Modules.VirtualItems
RGN.Modules.Wallets
RGN.Modules.SignIn
RGN.Modules.Leaderboard
var result = await [module_name].I.GetSomeResultAsync();
var purchaseResult = await StoreModule.I.BuyVirtualItemsAsync(itemIds);