internal static void DownloadAsset(string tag, GameServiceClientConfiguration configuration, Action <string> callback, Action <string> error)
 {
     LogUtil.LogDebug(Tag, "DownloadAssetStarted");
     _objDownload = NativePluginHandler.GetDownloadInstance();
     _objDownload.Call("DownloadAssetFile",
                       configuration.ClientId
                       , tag
                       , new IGameServiceCallback(callback.Invoke, error.Invoke));
 }
 public static void DownloadData(GameServiceClientConfiguration configuration, Action <string> callback, Action <string> error)
 {
     LogUtil.LogDebug(Tag, "DataDownloadStarted");
     _objDownload = NativePluginHandler.GetDownloadInstance();
     _objDownload.Call("DownloadObbDataFile",
                       configuration.ClientId
                       , configuration.DownloadTag
                       , new IGameServiceCallback(callback.Invoke, error.Invoke));
 }
        internal static void Init(GameServiceClientConfiguration configuration
                                  , Action <GameService> onSuccess
                                  , Action <string> onError)
        {
            var nativeService = NativePluginHandler.GetGameServiceInstance();

            NativePluginHandler.InitGameService(
                nativeService
                , configuration
                , gameService => { onSuccess.Invoke(new GameService(gameService, GameServiceType.Native, configuration.HaveNotification)); }
                , onError.Invoke, configuration.NotificationListener);
        }