Method Initialize
Initialize(IDataAccessLayer, Action, Action<Exception>)
Initialize the GameFoundation . It need a persistence object to be passed as argument to set the default persistence layer If the initialization fails, onInitializeFailed will be called with an exception.
Declaration
public static void Initialize(IDataAccessLayer dataLayer, Action onInitializeCompleted = null, Action<Exception> onInitializeFailed = null)
Parameters
Type | Name | Description |
---|---|---|
IDataAccessLayer | dataLayer | The data provider for the inventory manager. |
Action | onInitializeCompleted | Called when the initialization process is completed with success |
Action<Exception> | onInitializeFailed | Called when the initialization process failed |