Step 4 - Initialization
Unity integration
Structure
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: