public void ShowAd()
 {
     if (Maio.CanShow())
     {
         Maio.Show();
     }
 }
Example #2
0
        /// <summary>
        /// Images the use point ok.
        /// </summary>
        void ImageUsePointOk()
        {
            PanelPopupCloseAnimate(GameObject.FindGameObjectWithTag(CommonConstants.POPUP_SECOND_SELECT_TAG));
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                if (CommonConstants.IS_PREMIUM == false)
                {
                    //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                    if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_1) == false)
                    {
                        if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                        {
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                        }
                        //インタースティシャルのイベントが取れないのでバナー表示で機能が使えるように。
                        StartCoroutine(ReadMessageApiWait());
                    }
                    else
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.PanelChat;
                        //問答無用で動画広告を表示
                        Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
                        return;
                    }
                }
                else
                {
                    //有料会員の場合、何もしない。
                }
            }
#endif
        }
Example #3
0
        /// <summary>
        /// Boards the detail to chat open.
        /// </summary>
        /// <param name="animObj">Animation object.</param>
        public void BoardDetailToChatOpen(GameObject animObj)
        {
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_1) == false)
                {
                    if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                    {
                        AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                        AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                    }
                    BoardDetailToChatMethod("");
                }
                else
                {
                    //サーバーにイベント通知用Api(インストール時に一回のみ) ----------------------
                    string commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME;

                    LocalFileHandler.Init(commonFileName);
                    string isMovieFlag = LocalFileHandler.GetString(LocalFileConstants.MOVIE_POPUP_SHOW);

                    if (string.IsNullOrEmpty(isMovieFlag) == true)
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.BoardDetailChatOpen;
                        PanelPopupAnimate(_popupMovie);
                        return;
                    }
                    else
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.BoardDetailChatOpen;
                        //問答無用で動画広告を表示
                        Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
                        return;
                    }
                }
            }
            else
            {
                //レビューの場合「true」の場合は、強制的に
                BoardDetailToChatMethod("");                  //chatを開く。
            }
#elif UNITY_EDITOR
            BoardDetailToChatMethod("");
#endif
        }
Example #4
0
        /// <summary>
        /// Backs the user pict button.
        /// </summary>
        public void PopupBackUserPictButton()
        {
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                //無料会員か、有料会員の状態チェック
                if (CommonConstants.IS_PREMIUM == false)
                {
                    //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                    if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_2) == false)
                    {
                        if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                        {
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                        }
                        //インタースティシャルのイベントが取れないのでバナー表示で機能が使えるように。
                        StartCoroutine(BackLoadImage());
                    }
                    else
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.MatchBackloadImage;
                        //問答無用で動画広告を表示
                        Maio.Show(CommonConstants.MAIO_ZONE_ID_2);
                        return;
                    }
                }
                else
                {
                    MatchingEventManager.Instance.PopUpPanelClose(_panelPopupRewind.gameObject);
                    StartCoroutine(BackLoadImage());
                }
            }
            else
            {
                MatchingEventManager.Instance.PopUpPanelClose(_panelPopupRewind.gameObject);
                StartCoroutine(BackLoadImage());
            }
#endif
        }
Example #5
0
        //
        public void PopupSuperLikeButton()
        {
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                if (CommonConstants.IS_PREMIUM == false)
                {
                    //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                    if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_2) == false)
                    {
                        if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                        {
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                        }
                        //インタースティシャルのイベントが取れないのでバナー表示で機能が使えるように。
                        StartCoroutine(TinAction(LikeOrNope.SuperLike, true));
                    }
                    else
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.MatchSupreLike;
                        //問答無用で動画広告を表示
                        Maio.Show(CommonConstants.MAIO_ZONE_ID_2);
                        return;
                    }
                }
                else         //有料会員の場合、広告をスルー
                {
                    MatchingEventManager.Instance.PanelPopupCloseAnimate(_panelPopupSuperLikeLimit.gameObject);
                    StartCoroutine(TinAction(LikeOrNope.SuperLike, true, true));
                }
            }
            else
            {
                MatchingEventManager.Instance.PanelPopupCloseAnimate(_panelPopupSuperLikeLimit.gameObject);
                StartCoroutine(TinAction(LikeOrNope.SuperLike, true, true));
            }
#endif
        }
        /// <summary>
        /// Revives the like.
        /// </summary>
        /// <returns>The like.</returns>
        public void ReviveLike()
        {
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                //無料会員の場合。
                if (CommonConstants.IS_PREMIUM == false)
                {
                    //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                    if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_2) == false)
                    {
                        if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                        {
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                        }
                        //インタースティシャルのイベントが取れないのでバナー表示で機能が使えるように。
                        StartCoroutine(ReviveLikeWait());
                    }
                    else
                    {
                        AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.MatchLikeLimit;
                        //問答無用で動画広告を表示
                        Maio.Show(CommonConstants.MAIO_ZONE_ID_2);
                        return;
                    }
                }
                else
                {
                    //有料会員の場合、広告表示は一切しない。
                    StartCoroutine(ReviveLikeWait());
                }
            }
            else
            {
                StartCoroutine(ReviveLikeWait());
            }
#endif
        }
 /// <summary>
 /// Movies the popup look button.
 /// 動画をみて、チャットルームを開く
 /// </summary>
 public void MoviePopupLookButton()
 {
     AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.MessageList;
     Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
     PanelPopupCloseAnimate(_popupMovie);
 }
        /// <summary>
        /// Taps the this message.
        /// 自分と相手とのメッセージのやり取り.
        /// </summary>
        /// <param name="obj">Object.</param>
        public void TapThisMessage(GameObject obj)
        {
            if (_panelEazyNotifyInfiniteScroll.GetDisplayType() == "2")
            {
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, InformationBackButton);
                _backSwipe.EventMessageTarget = _informationPanel.gameObject;

                if (obj != null)
                {
                    string id = obj.name;
                }

                if (_informationPanel != null)
                {
                    if (_informationPanel.GetComponent <uTweenPosition> ().from.x == 0)
                    {
                        _informationPanel.GetComponent <uTweenPosition> ().from = _informationPanel.GetComponent <uTweenPosition> ().to;
                    }

                    _informationPanel.GetComponent <uTweenPosition> ().to = Vector3.zero;
                    _informationPanel.GetComponent <uTweenPosition> ().ResetToBeginning();
                    _informationPanel.GetComponent <uTweenPosition> ().enabled = true;

                    // 初期化処理
                    _informationPanelScroll.GetComponent <PanelInformationInfiniteScroll> ().Init(obj.name);
                }
            }
            else
            {
                _userId = obj.name;

#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
                if (GetUserApi._httpCatchData.result.review == "false")
                {
                    if (CommonConstants.IS_PREMIUM == false)
                    {
                        //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                        if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_1) == false)
                        {
                            if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                            {
                                AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                                AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                            }
                        }
                        else
                        {
                            //サーバーにイベント通知用Api(インストール時に一回のみ) ----------------------
                            string commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME;

                            LocalFileHandler.Init(commonFileName);
                            string isMovieFlag = LocalFileHandler.GetString(LocalFileConstants.MOVIE_POPUP_SHOW);

                            if (string.IsNullOrEmpty(isMovieFlag) == true)
                            {
                                PanelPopupAnimate(_popupMovie);
                                return;
                            }
                            else
                            {
                                //問答無用で動画広告を表示
                                AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.MessageList;
                                Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
                                return;
                            }
                        }
                    }
                    else
                    {
                        //
                        IMobileSdkAdsUnityPlugin.stop();
                    }
                }
#endif
                //審査中のときは、広告を一切挟まないので下記、処理。
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, ChatBackButton);
                _backSwipe.EventMessageTarget = _panelChat.gameObject;

                if (obj != null)
                {
                    string id = obj.name;
                }

                if (_panelChat != null)
                {
                    if (_panelChat.GetComponent <uTweenPosition> ().from.x == 0)
                    {
                        _panelChat.GetComponent <uTweenPosition> ().from = _panelChat.GetComponent <uTweenPosition> ().to;
                    }

                    _panelChat.GetComponent <uTweenPosition> ().to = Vector3.zero;
                    _panelChat.GetComponent <uTweenPosition> ().ResetToBeginning();
                    _panelChat.GetComponent <uTweenPosition> ().enabled = true;

                    // 初期化処理
                    _panelChat.GetComponent <PanelChat> ()._maxAfterID        = "";
                    _panelChat.GetComponent <PanelChat> ()._maxBeforeID       = "";
                    _panelChat.GetComponent <PanelChat> ()._maxAfterIDBackup  = "";
                    _panelChat.GetComponent <PanelChat> ()._maxBeforeIDBackup = "";
                    _panelChat.GetComponent <PanelChat> ()._listUpdateDisable = false;
                    _panelChat.GetComponent <PanelChat> ().Init(obj.name);
                }
            }
        }
Example #9
0
        //---------------- ここまで - 送り放題のポップアップ ----------------


        #endregion



        #region チャットをオープン
        /// <summary>
        /// Profiles to chat open.
        /// </summary>
        /// <returns>The to chat open.</returns>
        public void ProfileToChatOpen(GameObject animObj)
        {
#if UNITY_IPHONE || UNITY_ANDROID && !UNITY_EDITOR
            if (GetUserApi._httpCatchData.result.review == "false")
            {
                if (CommonConstants.IS_PREMIUM == false)
                {
                    //動画広告が何もない場合はアイモバイル、インターステシャルを表示。
                    if (Maio.CanShow(CommonConstants.MAIO_ZONE_ID_1) == false)
                    {
                        if (AppStartLoadBalanceManager.m_NendAdFullBoard != null)
                        {
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Load();
                            AppStartLoadBalanceManager.m_NendAdFullBoard.Show();
                        }
                    }
                    else
                    {
                        //サーバーにイベント通知用Api(インストール時に一回のみ) ----------------------
                        string commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME;

                        LocalFileHandler.Init(commonFileName);
                        string isMovieFlag = LocalFileHandler.GetString(LocalFileConstants.MOVIE_POPUP_SHOW);

                        if (string.IsNullOrEmpty(isMovieFlag) == true)
                        {
                            PanelPopupAnimate(_popupMovie);
                            return;
                        }
                        else
                        {
                            AppStartLoadBalanceManager._whereFromAds = MaioMovieSdkEvent.WhereFromAds.ProfileToChat;
                            //問答無用で動画広告を表示
                            Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
                            return;
                        }
                    }
                }
                else
                {
                    //有料会員の場合は何もしない。
                }
            }
#endif


            if (_blockButton.transform.GetChild(0).gameObject.activeSelf == true)
            {
                PopupPanel.Instance.PopClean();
                PopupPanel.Instance.PopMessageInsert(
                    LocalMsgConst.BLOCK_USER,
                    LocalMsgConst.OK,
                    ChatBlockEvent
                    );
                PanelPopupAnimate(GameObject.FindGameObjectWithTag(CommonConstants.POPUP_BASIC_TAG));
                return;
            }

            _panelChat.GetComponent <PanelChat> ()._maxAfterID        = "";
            _panelChat.GetComponent <PanelChat> ()._maxBeforeID       = "";
            _panelChat.GetComponent <PanelChat> ()._maxAfterIDBackup  = "";
            _panelChat.GetComponent <PanelChat> ()._maxBeforeIDBackup = "";
            _panelChat.GetComponent <PanelChat> ()._listUpdateDisable = false;            //解除処理
            PanelChat.Instance.Init(_toUserId);


            PanelPopupCloseAnimate(this.gameObject);
            _backSwipe.EventMessageTarget = _panelChat;
            PanelAnimate(animObj);
            _panelChat.GetComponent <BoxCollider2D> ().enabled = true;


            if (MypageEventManager.Instance != null || SearchEventManager.Instance != null)
            {
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, ProfileToChatCloseEvent);
                _backSwipe.EventMessageTarget = _panelChat.gameObject;
            }

            if (MessageEventManager.Instance != null)
            {
                HeaderPanel.Instance.BackButtonSwitch(false);
                //HeaderPanel.Instance.BackButtonSwitch (true, MessageEventManager.Instance.ChatBackButton);
                HeaderPanel.Instance.BackButtonSwitch(true, ProfileToChatCloseEvent);

                _backSwipe.EventMessageTarget = _panelChat.gameObject;
            }
            if (BulletinBoardEventManager.Instance != null)
            {
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, BulletinBoardEventManager.Instance.ProfileToChatCloseEvent);
                _backSwipe.EventMessageTarget = _panelChat.gameObject;
            }

            if (MatchingEventManager.Instance != null)
            {
                HeaderPanel.Instance.BackButtonSwitch(false);
                HeaderPanel.Instance.BackButtonSwitch(true, MatchingEventManager.Instance.ChatBackButton);
                _backSwipe.EventMessageTarget = _panelChat.gameObject;
            }
        }
Example #10
0
 /// <summary>
 /// Movies the popup look button.
 /// 動画をみて、チャットルームを開く
 /// </summary>
 public void MoviePopupLookButton()
 {
     Maio.Show(CommonConstants.MAIO_ZONE_ID_1);
     PanelPopupCloseAnimate(_popupMovie);
 }