Exemple #1
0
 public void Show()
 {
     effectPlayer = transform.GetComponent<UIEffectPlayer>();
     if (effectPlayer != null)
     {
         effectPlayer.ShowEffect();
         playingState = UIWindowStateEnum.PlayingShowEffect;
     }
 }
Exemple #2
0
    public void NextDialog()
    {
        m_bLock = true;         //先锁上点击
        BoxCollider collider = m_dialogBoardSprite.GetComponent <BoxCollider>();

        collider.size = new Vector3(2048, 2048, 1);

        m_dialogEffectPlayer.ShowEffect();                               //打开新窗口
        m_clickLabel.gameObject.SetActive(false);                        //关闭操作提示

        m_dialogText.Play(m_dialogContents[m_curDialogIndex], delegate() //播放下一段文字
        {
            m_bLock = false;                                             //播放完毕后解锁
            m_clickLabel.gameObject.SetActive(true);                     //显示操作提示



            if (m_curDialogIndex < m_dialogContents.Length - 1)
            {
                m_clickLabel.text = Localization.instance.Get("Click"); //把索引指向下一段文字
            }
            else                                                        //若已经播到了最后一条
            {
                if (m_ftueData[m_FTUEIndex].from.IsAvailable())         //看看是否需要操作,需要的话显示划动提示
                {
                    m_clickLabel.text = Localization.instance.Get("MoveBlock");
                    collider.size     = new Vector3(300, 200, 1);
                    m_pointer.SetActive(true);
                    m_pointer.GetComponent <TweenScale>().enabled = false;
                    m_pointerStartTime = Timer.millisecondNow();
                }
                else                                                    //不需要操作的话显示点击提示
                {
                    m_clickLabel.text = Localization.instance.Get("Click");
                    m_pointer.SetActive(false);
                }
                if (m_afterDialogFunc != null)
                {
                    m_afterDialogFunc();
                }
            }
            ++m_curDialogIndex;
        });
    }
Exemple #3
0
 public void OnTouchBegin()
 {
     if (m_bLock)
     {
         return;
     }
     if (m_curDialogIndex < m_dialogGroupMap[m_curDialogGroupNum].Count - 1)
     {
         ++m_curDialogIndex;
         m_dialogEffectPlayer.HideEffect(delegate()
         {
             m_dialogEffectPlayer.ShowEffect();
             ShowText(m_curDialogIndex);
         });
     }
     else
     {
         m_curDialogGroupNum = -1;
         HideWindow(m_afterDialogFunc);
     }
 }