Ejemplo n.º 1
0
        public static void InitGameService(
            string clientId
            , string clientSecret
            , bool logEnable
            , bool isGuest
            , DelegateCore.OnSuccessInit onSuccess
            , DelegateCore.OnError onError
            , DelegateCore.NotificationListener notificationListener
            )
        {
            var gameService = GetGameServiceInstance();

            gameService.Call("InitGameService",
                             clientId,
                             clientSecret,
                             logEnable,
                             isGuest,
                             new IGameServiceCallback(callBack => {
                if (callBack.Equals("Success"))
                {
                    onSuccess.Invoke(gameService);
                }
            },
                                                      onError.Invoke)
                             , new IGSNotificationListener(l =>
            {
                if (notificationListener != null)
                {
                    notificationListener.Invoke(l);
                }
            }));
        }
 public static void InitGameService(
     AndroidJavaObject gameService
     , GameServiceClientConfiguration configuration
     , DelegateCore.OnSuccessInit onSuccess
     , DelegateCore.OnError onError
     , DelegateCore.NotificationListener notificationListener
     )
 {
     gameService.Call("InitGameService"
                      , configuration.ClientId
                      , configuration.ClientSecret
                      , configuration.EnableLog
                      , configuration.LoginType == LoginType.Guest
                      , new IGameServiceCallback(c =>
     {
         if (c.Equals("Success"))
         {
             onSuccess.Invoke(gameService);
         }
     }, onError.Invoke)
                      , new IGSNotificationListener(l =>
     {
         if (notificationListener != null)
         {
             notificationListener.Invoke(l);
         }
     }));
 }
Ejemplo n.º 3
0
 public static void Init(
     string clientId
     , string clientSecret
     , DelegateCore.OnSuccessInit onInitGameServiceSuccess
     , DelegateCore.OnError onInitGameServiceError)
 {
     GameServicePluginHandler.InitGameService(
         clientId,
         clientSecret,
         onInitGameServiceSuccess
         , onInitGameServiceError);
 }
Ejemplo n.º 4
0
        public static void InitGameLoginService(
            bool checkAppStatus
            , bool checkOptionalUpdate
            , DelegateCore.OnSuccessInit onSuccess,
            DelegateCore.OnError onError)
        {
            var loginService = GetGameLoginServiceInstance();

            loginService.Call("InitLoginService",
                              checkAppStatus,
                              checkOptionalUpdate,
                              new IGameServiceCallback(callBack => {
                if (callBack.Equals("Success"))
                {
                    onSuccess.Invoke(loginService);
                }
            },
                                                       onError.Invoke));
        }
Ejemplo n.º 5
0
        public static void InitGameService(
            string clientId
            , string clientSecret,
            DelegateCore.OnSuccessInit onSuccess,
            DelegateCore.OnError onError)
        {
            var gameService = GetGameServiceInstance();

            gameService.Call("InitGameService",
                             clientId,
                             clientSecret,
                             new IGameServiceCallback(callBack => {
                if (callBack.Equals("Success"))
                {
                    onSuccess.Invoke(gameService);
                }
            },
                                                      onError.Invoke));
        }