コード例 #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);
         }
     }));
 }
コード例 #3
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));
        }
コード例 #4
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));
        }