public void BoardDetailClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("BulletInBoardPanel"); HeaderPanel.Instance.BackButtonSwitch(false, null, title); PanelBoardListAnimate(animObj, true); }
/// <summary> /// Initialize this instance. /// </summary> public IEnumerator Initialize() { _tmpText.text = LocalMsgConst.TITLE_MYPAGE; PanelStateManager.InitPanelSet(); //ローカルファイルからマスターデータを取得してくる。 - ここから _loadingOverlay.SetActive(true); new GetUserApi(); while (GetUserApi._success == false) { yield return(GetUserApi._success == true); } AppStartLoadBalanceManager._userKey = GetUserApi._httpCatchData.result.user.user_key; AppStartLoadBalanceManager._gender = GetUserApi._httpCatchData.result.user.sex_cd; //シーンの最初に表示する箇所、初期化。 PanelMypageMain.Instance.Init(); _loadingOverlay.SetActive(false); //ローカルファイルからマスターデータを取得してくる。 - ここまで //TODO: プロフィールアップデートAPIが終わった後でユーザーデータ取得してきて照らし合わせる処理を書く。 yield break; }
/// <summary> /// Histories the list close. /// </summary> /// <returns>The list close.</returns> /// <param name="animObj">Animation object.</param> public void HistoryListClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelMypageMain"); HeaderPanel.Instance.BackButtonSwitch(false, HistoryListCloseEvent, title); BackButton(animObj); }
/// <summary> /// Others the setting close. /// </summary> /// <returns>The setting close.</returns> public void OtherSettingClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelMypageMain"); HeaderPanel.Instance.BackButtonSwitch(false, OtherSettingCloseEvent, title); StartCoroutine(BackAnimateToDestory(animObj)); }
/// <summary> /// Panels the rand message close. /// </summary> /// <returns>The rand message close.</returns> public void PanelRandMessageClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelMypageMain"); HeaderPanel.Instance.BackButtonSwitch(false, null, title); BackButton(animObj); }
/// <summary> /// Webviews the campaign close. /// </summary> /// <returns>The campaign close.</returns> /// <param name="animObj">Animation object.</param> public void WebviewCampaignClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelMypageMain"); HeaderPanel.Instance.BackButtonSwitch(false, null, title); _panelCampaign.SetActive(false); BackButton(animObj); }
/// <summary> /// Others the setting. /// </summary> /// <returns>The setting.</returns> public void OtherSettingOpen() { string title = PanelStateManager.GetHeaderStringByKey("OtherSetting"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, OtherSettingCloseEvent, title); StartCoroutine(OtherSettingOpenInumerator()); }
/// <summary> /// Profiles the change close. /// </summary> /// <param name="animObj">Animation object.</param> public void ProfileChangeClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelMypageMain"); HeaderPanel.Instance.BackButtonSwitch(false, ProfileChangeEvent, title); PanelMypageMain.Instance.Init(true); StartCoroutine(BackAnimateToDestory(animObj)); }
/// <summary> /// Contacts the open. /// </summary> /// <returns>The open.</returns> /// <param name="animObj">Animation object.</param> public void ContactOpen(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelContact"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, ContactCloseEvent, title); this.GetComponent <BoxCollider2D> ().enabled = false; MypageEventManager.Instance.PanelAnimate(animObj); }
/// <summary> /// Contacts the close. /// </summary> /// <returns>The close.</returns> /// <param name="animObj">Animation object.</param> public void ContactClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("OtherSetting"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, BackButtonEvent, title); this.GetComponent <BoxCollider2D> ().enabled = true; MypageEventManager.Instance.BackButton(animObj); }
/// <summary> /// Helps the detail close. /// </summary> /// <returns>The detail close.</returns> /// <param name="animObj">Animation object.</param> public void HelpDetailClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("HelpPanel"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, HelpEvent, title); HelpPanel.Instance.gameObject.SetActive(true); MypageEventManager.Instance.BackButton(animObj); }
/// <summary> /// Histories the list open. /// </summary> /// <returns>The list open.</returns> /// <param name="animObj">Animation object.</param> public void HistoryListOpen(GameObject animObj) { HeaderPanel.Instance.BackButtonSwitch(false); string title = PanelStateManager.GetHeaderStringByKey("PaneHistory"); HeaderPanel.Instance.BackButtonSwitch(true, HistoryListCloseEvent, title); _backSwipe.EventMessageTarget = _paneHistory; PaneHistory.Instance.Init(); PanelAnimate(animObj); }
/// <summary> /// Webviews the campaign open. /// </summary> /// <returns>The campaign open.</returns> /// <param name="animObj">Animation object.</param> public void WebviewCampaignOpen(GameObject animObj) { HeaderPanel.Instance.BackButtonSwitch(false); string title = PanelStateManager.GetHeaderStringByKey("PanelCampaign"); HeaderPanel.Instance.BackButtonSwitch(true, WebviewTransCloseEvent, title); _panelCampaign.SetActive(true); PanelAnimate(animObj); }
/// <summary> /// Helps the detail open. /// </summary> /// <returns>The detail open.</returns> /// <param name="panelObject">Panel object.</param> public void HelpDetailOpen(GameObject panelObject) { HeaderPanel.Instance.BackButtonSwitch(false); string title = PanelStateManager.GetHeaderStringByKey("HelpPanelDetail"); HeaderPanel.Instance.BackButtonSwitch(true, HelpDetailEvent, title); PanelHelpDetail.Instance.gameObject.SetActive(true); PanelHelpDetail.Instance.Init(panelObject.transform.GetChild(1).GetComponent <Text>().text, panelObject.transform.GetChild(2).GetComponent <Text>().text); MypageEventManager.Instance.PanelAnimate(PanelHelpDetail.Instance.gameObject); }
public void BoardDetailOpen(GameObject animObj) { //string title = PanelStateManager.GetHeaderStringByKey ("BulletInBoardDetailPanel"); string title = PanelStateManager.GetHeaderStringByKey("BulletInBoardPanel"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, BoardDetailCloseEvent, title); _backSwipe.EventMessageTarget = _panelBoardDetail; PanelBoardListAnimate(animObj); }
/// <summary> /// Webviews the term open. /// </summary> /// <returns>The term open.</returns> public void WebviewTransOpen(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("PanelTrans"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, WebviewTransCloseEvent, title); this.GetComponent <BoxCollider2D> ().enabled = false; _webviewTrans.SetActive(true); MypageEventManager.Instance.PanelAnimate(animObj); }
/// <summary> /// Helps the close. /// </summary> /// <returns>The close.</returns> /// <param name="animObj">Animation object.</param> public void HelpClose(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("OtherSetting"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, MypageEventManager.Instance.OtherSettingCloseEvent, title); HelpPanel.Instance.gameObject.SetActive(false); MypageEventManager.Instance.BackButton(animObj); GameObject.FindGameObjectWithTag(CommonConstants.BACK_SWIPE).GetComponent <ScreenRaycaster>().enabled = true; }
/// <summary> /// Helps the open. /// </summary> /// <returns>The open.</returns> /// <param name="animObj">Animation object.</param> public void HelpOpen(GameObject animObj) { string title = PanelStateManager.GetHeaderStringByKey("HelpPanel"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, HelpEvent, title); HelpPanel.Instance.gameObject.SetActive(true); HelpPanel.Instance.Initialize(); MypageEventManager.Instance.PanelAnimate(animObj); GameObject.FindGameObjectWithTag(CommonConstants.BACK_SWIPE).GetComponent <ScreenRaycaster>().enabled = false; }
public void ProfileClose(GameObject animObj) { _panelBoardDetail.GetComponent <PanelBoardDetail> ().Init(); HeaderPanel.Instance.BackButtonSwitch(false, ProfileCloseEvent); HeaderPanel.Instance.BackButtonSwitch(true, BoardDetailCloseEvent, PanelStateManager.GetHeaderStringByKey("BulletInBoardPanel")); _backSwipe.EventMessageTarget = _panelBoardDetail; PanelBoardListAnimate(animObj, true); _panelBoardDetail.GetComponent <BoxCollider2D> ().enabled = true; _panelChat.GetComponent <PanelChat> ()._listUpdateDisable = true; //無効化処理 }
/// <summary> /// Panels the rand message open. /// </summary> /// <returns>The rand message open.</returns> public void PanelRandMessageOpen(GameObject animObj) { // if (AppStartLoadBalanceManager._isBaseProfile == false) { // PanelFooterButtonManager.Instance.NoRegistBaseProfile (); // return; // } HeaderPanel.Instance.BackButtonSwitch(false); string title = PanelStateManager.GetHeaderStringByKey("PanelRandMessage"); HeaderPanel.Instance.BackButtonSwitch(true, PanelRandMessageCloseEvent, title); _backSwipe.EventMessageTarget = _panelRandMessage; PanelRandMessage.Instance.Init(); PanelAnimate(animObj); }
/// <summary> /// Profiles the change open inumerator. /// </summary> /// <returns>The change open inumerator.</returns> private IEnumerator ProfileChangeOpenInumerator() { GameObject go = Instantiate(Resources.Load(CommonConstants.PROFILE_CHANGE_PANEL)) as GameObject; while (go == null) { yield return(go != null); } go.transform.SetParent(_canvas, false); go.transform.SetSiblingIndex(1); go.name = CommonConstants.PROFILE_CHANGE_PANEL; string title = PanelStateManager.GetHeaderStringByKey("PanelProfileChange"); HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, ProfileChangeEvent, title); DataInit(); go.GetComponent <PanelProfileChange>().Init(); _backSwipe.EventMessageTarget = go; PanelAnimate(go); }
/// <summary> /// Start this instance. /// </summary> IEnumerator Start() { _coverOrProf = CoverOrProfType.None; _time = 0; _tmpText.text = LocalMsgConst.TITLE_MYPAGE; _loadingOverlay.SetActive(true); //アンドロイドでバックグラウンドプッシュ?スプラッシュから?何かのタイミングで //static変数のデータが消え去ってしまうみたいなのでリカバー if (string.IsNullOrEmpty(AppStartLoadBalanceManager._userKey) == true) { //サーバーにイベント通知用Api(インストール時に一回のみ) ---------------------- string _commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME; LocalFileHandler.Init(_commonFileName); //ファイルが作成されるまでポーリングして処理待ち while (System.IO.File.Exists(_commonFileName) == false) { yield return(System.IO.File.Exists(_commonFileName) == true); } //ここでユーザーキーを取得。 AppStartLoadBalanceManager._userKey = LocalFileHandler.GetString(LocalFileConstants.USER_KEY); #if UNITY_ANDROID //ステータスバーを表示 //Android用 ApplicationChrome.statusBarState = ApplicationChrome.States.VisibleOverContent; #endif } //ユーザーの取得。 new GetUserApi(); while (GetUserApi._success == false) { yield return(GetUserApi._success == true); } if (GetUserApi._httpCatchData.result.is_auto_renewable == "true") { CommonConstants.IS_PREMIUM = true; } else { CommonConstants.IS_PREMIUM = false; } PremiumPushPanel.Instance.Init(); //性別が取得出来ていない場合の処理。 if (GetUserApi._httpCatchData.result.user.sex_cd == "0") { PanelGenderSelectCommon.Instance.Init(); //性別選択のUIを表示。 _loadingOverlay.SetActive(false); yield break; } AppStartLoadBalanceManager._gender = GetUserApi._httpCatchData.result.user.sex_cd; ///メンテナンスの場合、処理を止める。 if (AppliEventController.Instance.MaintenanceCheck() == true) { _loadingOverlay.SetActive(false); yield break; } ///ユーザーのステータスをチェックする処理。 AppliEventController.Instance.UserStatusProblem(); ///強制アップデートの場合、処理を止める。 if (AppliEventController.Instance.ForceUpdateCheck() == true) { _loadingOverlay.SetActive(false); yield break; } ///アプリポップアップレビューの立ち上げ処理。 AppliEventController.Instance.AppliReview(); //マスターデータの取得。 if (InitDataApi._httpCatchData == null) { new InitDataApi(); while (InitDataApi._success == false) { yield return(InitDataApi._success == true); } } //基本プロフィールを作成しているかどうかの判定。念の為、もう一回判定。 if (string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.name) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.pref) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.city_id) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.birth_date) == false) { //基本プロフィールを作成している。 AppStartLoadBalanceManager._isBaseProfile = true; } else { //まだ、基本プロフィールを作成していない。 AppStartLoadBalanceManager._isBaseProfile = false; } //こっからプッシュ飛んできた時の処理。 if (NotificationRecieveManager._isCatch == true) { switch (AppStartLoadBalanceManager._toScenePanel) { case CommonConstants.VIEW_HISTORY: HeaderPanel.Instance.BackButtonSwitch(false); HeaderPanel.Instance.BackButtonSwitch(true, HistoryListCloseEvent); _tmpText.text = LocalMsgConst.TITLE_HISTORY; PaneHistory.Instance.Init(); PanelAnimate(_paneHistory); _paneHistory.GetComponent <BoxCollider2D> ().enabled = false; break; } NotificationRecieveManager._isCatch = false; yield break; } //ヘッダーパネル初期化 PanelStateManager.InitPanelSet(); //データの初期化等 DataInit(); //シーンの最初に表示する箇所、初期化。 PanelMypageMain.Instance.Init(); //審査レビューじゃない場合のみ広告表示。 if (GetUserApi._httpCatchData.result.review == "false") { #if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR //有料会員か? if (CommonConstants.IS_PREMIUM == false) { // 広告の取得、表示処理 string spotId = ""; if (CommonConstants.IS_AD_TEST == true) { spotId = CommonConstants.IMOBILE_BANNER_SPOT_TEST_ID; //インタースティシャル広告 IMobileSdkAdsUnityPlugin.show(CommonConstants.IMOBILE_INTERSTATIAL_SPOT_TEST_ID); } else { spotId = CommonConstants.IMOBILE_BANNER_SPOT_ID; //インタースティシャル広告 IMobileSdkAdsUnityPlugin.show(CommonConstants.IMOBILE_INTERSTATIAL_SPOT_ID); } if (AppStartLoadBalanceManager.m_NendAdFullBoard != null) { AppStartLoadBalanceManager.m_NendAdFullBoard.Load(); AppStartLoadBalanceManager.m_NendAdFullBoard.Show(); } if (_isUnserBanner == false) { _imobileBannerViewId = IMobileSdkAdsUnityPlugin.show( spotId, IMobileSdkAdsUnityPlugin.AdType.BANNER, IMobileSdkAdsUnityPlugin.AdAlignPosition.CENTER, IMobileSdkAdsUnityPlugin.AdValignPosition.BOTTOM, true ); _isUnserBanner = true; } //_nendAdBanner.Show (); } else { Debug.Log(" i-mobile LOG: => Start This is Premium"); 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); } //バナー広告隠す処理。 IMobileSdkAdsUnityPlugin.setVisibility(_imobileBannerViewId, false); //有料会員のため、広告ストップ IMobileSdkAdsUnityPlugin.stop(spotId); _nendAdBanner.Pause(); _nendAdBanner.Hide(); Destroy(_nendAdBanner.gameObject); } #endif } _loadingOverlay.SetActive(false); yield break; }
/// <summary> /// Start this instance. /// </summary> IEnumerator Start() { PanelStateManager.InitPanelSet(); _loadingOverlay.SetActive(true); // アンドロイドでバックグラウンドプッシュ?スプラッシュから?何かのタイミングで //static変数のデータが消え去ってしまうみたいなのでリカバー if (string.IsNullOrEmpty(AppStartLoadBalanceManager._userKey) == true) { //サーバーにイベント通知用Api(インストール時に一回のみ) ---------------------- string _commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME; LocalFileHandler.Init(_commonFileName); //ファイルが作成されるまでポーリングして処理待ち while (System.IO.File.Exists(_commonFileName) == false) { yield return(System.IO.File.Exists(_commonFileName) == true); } //ここでユーザーキーを取得 AppStartLoadBalanceManager._userKey = LocalFileHandler.GetString(LocalFileConstants.USER_KEY); #if UNITY_ANDROID //ステータスバーを表示 //Android用 ApplicationChrome.statusBarState = ApplicationChrome.States.VisibleOverContent; #endif } //ユーザー情報を取得 new GetUserApi(); while (GetUserApi._success == false) { yield return(GetUserApi._success == true); } if (GetUserApi._httpCatchData.result.review == "false") { #if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR //有料会員か? if (CommonConstants.IS_PREMIUM == false) { //_nendAdBanner.Show (); } else { _nendAdBanner.Pause(); _nendAdBanner.Hide(); Destroy(_nendAdBanner.gameObject); } #endif } //性別が取得出来ていない場合の処理。 if (GetUserApi._httpCatchData.result.user.sex_cd == "0") { PanelGenderSelectCommon.Instance.Init(); //性別選択のUIを表示。 _loadingOverlay.SetActive(false); yield break; } AppStartLoadBalanceManager._gender = GetUserApi._httpCatchData.result.user.sex_cd; ///メンテナンスの場合、処理を止める。 if (AppliEventController.Instance.MaintenanceCheck() == true) { _loadingOverlay.SetActive(false); yield break; } ///ユーザーのステータスをチェックする処理。 AppliEventController.Instance.UserStatusProblem(); ///強制アップデートの場合、処理を止める。 if (AppliEventController.Instance.ForceUpdateCheck() == true) { _loadingOverlay.SetActive(false); yield break; } ///アプリポップアップレビューの立ち上げ処理。 AppliEventController.Instance.AppliReview(); //マスター情報を取得。 if (InitDataApi._httpCatchData == null) { new InitDataApi(); while (InitDataApi._success == false) { yield return(InitDataApi._success == true); } } //基本プロフィールを作成しているかどうかの判定。念の為、もう一回判定。 if (string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.name) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.pref) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.city_id) == false && string.IsNullOrEmpty(GetUserApi._httpCatchData.result.user.birth_date) == false) { //基本プロフィールを作成している。 AppStartLoadBalanceManager._isBaseProfile = true; } else { //まだ、基本プロフィールを作成していない。 AppStartLoadBalanceManager._isBaseProfile = false; } _tmpText.text = LocalMsgConst.TITLE_BBS; _loadingOverlay.SetActive(false); if (_isEventStart == false) { _isEventStart = true; } yield break; }