/// <summary>
 /// Backs the mypage scene.
 /// </summary>
 /// <returns>The mypage scene.</returns>
 void BackMypageScene()
 {
     HeaderPanel.Instance.BackButtonSwitch(false);
     SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
     Helper.LocalFileHandler.SetString(LocalFileConstants.FROM_MYPAGE_SCENE, "");
     Helper.LocalFileHandler.Flush();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Purchase this instance.
 /// </summary>
 public void Purchase()
 {
     if (SceneManager.GetActiveScene().name != CommonConstants.START_SCENE && SceneManager.GetActiveScene().name != CommonConstants.PROBLEM_SCENE)
     {
         SceneHandleManager.NextSceneRedirect(CommonConstants.PURCHASE_SCENE);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Payments the API finish.
        /// </summary>
        public void PaymentApiFinish()
        {
            if (GetUserApi._httpCatchData.result.is_auto_renewable == "true")
            {
                CommonConstants.IS_PREMIUM = true;
                //とりあえず、アイモバイルの広告全ストップ。
                IMobileSdkAdsUnityPlugin.stop();
                string spotId = "";
                if (CommonConstants.IS_AD_TEST == true)
                {
                    spotId = CommonConstants.IMOBILE_BANNER_SPOT_TEST_ID;
                    //インタースティシャル広告
                    IMobileSdkAdsUnityPlugin.stop(CommonConstants.IMOBILE_INTERSTATIAL_SPOT_TEST_ID);
                }
                else
                {
                    spotId = CommonConstants.IMOBILE_BANNER_SPOT_ID;
                    //インタースティシャル広告
                    IMobileSdkAdsUnityPlugin.stop(CommonConstants.IMOBILE_INTERSTATIAL_SPOT_ID);
                }

                _nendAdBanner.Pause();
                _nendAdBanner.Hide();

                IMobileSdkAdsUnityPlugin.stop(spotId);
                SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
            }
        }
Exemplo n.º 4
0
    /// <summary>
    /// Raises the received message event.
    /// WEBVIEWからネイティブアクセス処理。
    /// </summary>
    /// <param name="webView">Web view.</param>
    /// <param name="message">Message.</param>
    public void OnReceivedMessage(UniWebView webView, UniWebViewMessage message)
    {
        _toUser = "";
        if (message.path != null)
        {
            string key = message.path;
            if (message.path.Contains("/"))
            {
                string[] profile = message.path.Split('/');
                key     = profile[0];
                _toUser = profile[1];
            }
            switch (key)
            {
            case "profile":
                _isFromCampaign = true;
                SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
                break;

            case "inquiry":
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, InquiryBack);
                EventManager.MypageEventManager.Instance.BackButton(PanelCampaign.Instance.gameObject);
                PanelCampaign.Instance.gameObject.SetActive(false);
                OtherSetting.Instance.ContactOpen(PanelContact.Instance.gameObject);
                break;

            case "purchase":
                SceneHandleManager.NextSceneRedirect(CommonConstants.PURCHASE_SCENE);
                break;
            }
        }
    }
Exemplo n.º 5
0
        /// <summary>
        /// Profs the update.
        ///通信処理。
        /// </summary>
        /// <returns>The update.</returns>
        private IEnumerator ProfUpdate()
        {
            _loadingOvelay.SetActive(true);

            //ユーザーデータ取得処理
            new GetUserApi();
            while (GetUserApi._success == false)
            {
                yield return(GetUserApi._success == true);
            }

            GetUserApi._httpCatchData.result.user.sex_cd = AppStartLoadBalanceManager._gender;

            //ユーザーアップデート処理
            new ProfileUpdateApi(GetUserApi._httpCatchData.result.user);
            while (ProfileUpdateApi._success == false)
            {
                yield return(ProfileUpdateApi._success == true);
            }

            _loadingOvelay.SetActive(false);

            SceneHandleManager.NextSceneRedirect(SceneManager.GetActiveScene().name);
            yield break;
        }
Exemplo n.º 6
0
 /// <summary>
 /// Tos my page.
 /// </summary>
 public void ToMyPage()
 {
     if (SceneManager.GetActiveScene().name != CommonConstants.START_SCENE && SceneManager.GetActiveScene().name != CommonConstants.PROBLEM_SCENE)
     {
         SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
     }
 }
        /// <summary>
        /// News the message.
        /// </summary>
        /// <returns>The message.</returns>
        public void NewMessage()
        {
            string commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME;

            LocalFileHandler.Init(commonFileName);
            LocalFileHandler.SetString(LocalFileConstants.FROM_MYPAGE_SCENE, CommonConstants.MYPAGE_SCENE);
            LocalFileHandler.Flush();
            SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Users the status problem.
        /// ユーザーのステータスが「垢バンか退会処理」の場合シーンを強制移動。
        /// </summary>
        /// <returns>The status problem.</returns>
        public void UserStatusProblem()
        {
            var user = GetUserApi._httpCatchData.result.user;

            Debug.Log(user.status + " ==================== " + ((int)UserStatusType.STATUS_RESIGN).ToString());

            if (user.status == ((int)UserStatusType.STATUS_BAN).ToString() || user.status == ((int)UserStatusType.STATUS_RESIGN).ToString())
            {
                SceneHandleManager.NextSceneRedirect(CommonConstants.PROBLEM_SCENE);
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Resigns the API enumurator.
        /// </summary>
        /// <returns>The API enumurator.</returns>
        private IEnumerator ResignApiEnumurator()
        {
            _loadingOverlay.SetActive(true);
            new ResignUserApi();
            while (ResignUserApi._success == false)
            {
                yield return(ResignUserApi._success == true);
            }
            _loadingOverlay.SetActive(false);

            ResignPopupCancel();
            SceneHandleManager.NextSceneRedirect(CommonConstants.PROBLEM_SCENE);
            yield break;
        }
        /// <summary>
        /// Profiles the update API wait.
        /// </summary>
        /// <returns>The update API wait.</returns>
        private IEnumerator ProfileUpdateApiWait(GameObject animObj)
        {
            _loadingOverlay.SetActive(true);

            while (ProfileUpdateApi._success == false)
            {
                yield return(ProfileUpdateApi._success == true);
            }

            new GetUserApi();
            while (GetUserApi._success == false)
            {
                yield return(GetUserApi._success == true);
            }

            _loadingOverlay.SetActive(false);

            if (MypageEventManager.Instance != null)
            {
                MypageEventManager.Instance._userDataBasic = GetUserApi._httpCatchData.result.user;
            }

            //基本プロフィール作成OK♪
            AppStartLoadBalanceManager._isBaseProfile = true;
            AppStartLoadBalanceManager._gender        = GetUserApi._httpCatchData.result.user.sex_cd;
            _currentProfSettingState = CurrentProfSettingStateType.None;

            if (PanelChatDescripton.Instance != null)
            {
                //レビュー状態の時はランダムメッセージを送らないようにする
                if (PreRegistUser._httpCatchData.result.review == "false")
                {
                    PanelAnimate(PanelChatDescripton.Instance.gameObject);
                }
                else
                {
                    StarFinished();
                }
            }
            else
            {
                BackButton(animObj);
            }

            if (MypageEventManager.Instance != null)
            {
                //リロード
                SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
            }
        }
Exemplo n.º 11
0
        /// <summary>
        /// Scenes the jump.
        /// </summary>
        /// <returns>The jump.</returns>
        private IEnumerator MypageSceneJump()
        {
            _userData.user_key = AppStartLoadBalanceManager._userKey;
            _userData.sex_cd   = AppStartLoadBalanceManager._gender;

            _loadingOverlay.SetActive(true);
            new ProfileUpdateApi(_userData);
            while (ProfileUpdateApi._success == false)
            {
                yield return(ProfileUpdateApi._success == true);
            }
            _loadingOverlay.SetActive(false);

            SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
            yield break;
        }
Exemplo n.º 12
0
        /// <summary>
        /// Resigns the API enumurator.
        /// </summary>
        /// <returns>The API enumurator.</returns>
        private IEnumerator ResignApiEnumurator()
        {
            _loadingOverlay.SetActive(true);

            //ここが退会解除処理。
            new ReviveUserApi();
            while (ReviveUserApi._success == false)
            {
                yield return(ReviveUserApi._success == true);
            }
            _loadingOverlay.SetActive(false);
            ResignRelasePopupCancel();

            SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
            yield break;
        }
Exemplo n.º 13
0
        /// <summary>
        /// Matching this instance.
        /// </summary>
        public void Matching()
        {
            if (SceneManager.GetActiveScene().name == CommonConstants.START_SCENE || SceneManager.GetActiveScene().name == CommonConstants.PROBLEM_SCENE)
            {
                return;
            }

            if (AppStartLoadBalanceManager._isBaseProfile == false)
            {
                NoRegistBaseProfile();
                return;
            }
            if (SceneManager.GetActiveScene().name != CommonConstants.START_SCENE)
            {
                SceneHandleManager.NextSceneRedirect(CommonConstants.MATCHING_SCENE);
            }
        }
Exemplo n.º 14
0
        /// <summary>
        /// Bulletins the board.
        /// </summary>
        public void BulletinBoard()
        {
            if (SceneManager.GetActiveScene().name == CommonConstants.START_SCENE || SceneManager.GetActiveScene().name == CommonConstants.PROBLEM_SCENE)
            {
                return;
            }

            if (AppStartLoadBalanceManager._isBaseProfile == false)
            {
                NoRegistBaseProfile();
                return;
            }
            if (SceneManager.GetActiveScene().name != CommonConstants.START_SCENE)
            {
                SceneHandleManager.NextSceneRedirect(CommonConstants.BULLETIN_BOARD_SCENE);
            }
        }
    /// <summary>
    /// Pushs the catch proccess.
    /// </summary>
    /// <returns>The catch proccess.</returns>
    private void NextSceneProccess()
    {
        string recieveData = null;

#if UNITY_ANDROID && !UNITY_EDITOR
        recieveData = GCMService.GetPushMessage();
#elif UNITY_IPHONE && !UNITY_EDITOR
        recieveData = NativeRecieveManager.GetPushMessageIos();
#endif

        if (string.IsNullOrEmpty(recieveData) == false)
        {
            NotificationRecieveManager.NextSceneProccess(recieveData);
        }
        else
        {
            SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
        }
    }
Exemplo n.º 16
0
 /// <summary>
 /// Backs the swipe.
 /// </summary>
 void OnSwipe(SwipeGesture gesture)
 {
     if (gesture.Selection)
     {
         if (gesture.Direction == FingerGestures.SwipeDirection.Left)
         {
             //Debug.Log ("Left Left Left Left Left Left ");
         }
         else if (gesture.Direction == FingerGestures.SwipeDirection.Right)
         {
             Helper.LocalFileHandler.Init(LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME);
             string fromScene = Helper.LocalFileHandler.GetString(LocalFileConstants.FROM_MYPAGE_SCENE);
             if (string.IsNullOrEmpty(fromScene) == false && fromScene == CommonConstants.MYPAGE_SCENE)
             {
                 Helper.LocalFileHandler.SetString(LocalFileConstants.FROM_MYPAGE_SCENE, "");
                 Helper.LocalFileHandler.Flush();
                 SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
             }
         }
     }
 }
Exemplo n.º 17
0
 /// <summary>
 /// Splashs the finished.
 /// </summary>
 public void StarFinished()
 {
     SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
 }
Exemplo n.º 18
0
        /// <summary>
        /// Nexts the scene proccess.
        /// </summary>
        /// <returns>The scene proccess.</returns>
        public static void NextSceneProccess(string catchData = "")
        {
            _isCatch = false;

            if (string.IsNullOrEmpty(catchData) == false)
            {
                NotificationRecive data      = new NotificationRecive();
                string[]           splitData = catchData.Split(' ');
                data.view_name = splitData [0];
                if (splitData.Length > 1)
                {
                    data.id = splitData [1];
                }

#if UNITY_ANDROID
                //ステータスバーを表示 //Android用
                ApplicationChrome.statusBarState = ApplicationChrome.States.VisibleOverContent;
#endif


                switch (data.view_name)
                {
                //メッセージリスト
                case CommonConstants.VIEW_NAME_MESSAGE:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
                    _isCatch = true;
                    break;

                //メッセージ詳細
                case CommonConstants.VIEW_MESSAGE_DETAIL:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
                    _isCatch = true;
                    break;

                //ユーザーのプロファイル表示
                case CommonConstants.VIEW_PROFILE:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
                    _isCatch = true;
                    break;

                case CommonConstants.VIEW_BOARD:     //掲示板リストに飛ばす
                    SceneHandleManager.NextSceneRedirect(CommonConstants.BULLETIN_BOARD_SCENE);
                    //_isCatch = true;
                    break;

                //マイページの履歴を表示する処理。
                case CommonConstants.VIEW_HISTORY:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
                    _isCatch = true;
                    break;

                //お知らせ詳細用プッシュが飛んできた場合。
                case CommonConstants.VIEW_INFO_DETAIL:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MESSAGE_SCENE);
                    _isCatch = true;
                    break;

                default:
                    SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
                    break;
                }

                AppStartLoadBalanceManager._toPushCatchUserId = data.id;
                AppStartLoadBalanceManager._toScenePanel      = data.view_name;
                return;
            }
            else
            {
                //キャッチしたデータが無ければマイページのシーンにジャンプ
                SceneHandleManager.NextSceneRedirect(CommonConstants.MYPAGE_SCENE);
                return;
            }
        }
 /// <summary>
 /// Funcs the limit over.
 /// </summary>
 public void FuncLimitOver()
 {
     //TODO: とりあえず課金シーンに飛ばす、後で書き換え
     SceneHandleManager.NextSceneRedirect(CommonConstants.PURCHASE_SCENE);
 }