示例#1
0
 protected override void Enter_BrushTopic()
 {
     base.Enter_BrushTopic();
     if (m_DifficultyType == DifficultyType.Easy)
     {
         for (int i = 0; i < m_EasyMapPuzzle.Length; i++)
         {
             if (m_EasyMapPuzzle[i].name.Contains(SelectTopicSplit[0]))
             {
                 m_CurSelectMapPuzzle = m_EasyMapPuzzle[i];
                 m_CurSelectMapPuzzle.InitMapPuzzle(Enter_Success);
                 break;
             }
         }
     }
     else
     {
         for (int i = 0; i < m_TroubleMapPuzzle.Length; i++)
         {
             if (m_TroubleMapPuzzle[i].name.Contains(SelectTopicSplit[0]))
             {
                 m_CurSelectMapPuzzle = m_TroubleMapPuzzle[i];
                 m_CurSelectMapPuzzle.InitMapPuzzle(Enter_Success);
                 break;
             }
         }
     }
     m_CurSoundId    = int.Parse(SelectTopicSplit[1]);
     m_SuccessID     = -1;
     m_CurClipLength = 0;
     GameEntry.Sound.StopSound(s_TopicSoundId);
     s_TopicSoundId = (int)GameEntry.Sound.PlaySoundAndLength(m_CurSoundId, ref m_ClipMaxLength);
 }
示例#2
0
 /// <summary>
 /// open时候调用一次
 /// </summary>
 protected override void ResetData()
 {
     base.ResetData();
     if (m_CurSelectMapPuzzle != null)
     {
         m_CurSelectMapPuzzle.Clear();
         m_CurSelectMapPuzzle = null;
     }
 }