Esempio n. 1
0
        /// <summary>[LateUpdate]</summary>
        void LateUpdate()
        {
            bool found = IsHitVisibility();

            //見つけとったら音を流す
            if (((found ^ m_isOldFound) & found) != false && m_sePlayer != null)
            {
                if (m_isStopWhenPlayingSE)
                {
                    m_sePlayer.StopAll();
                }

                m_sePlayer.PlaySE(m_indexOfSE, m_isLoopSE);
            }

            //フラグ初期化
            m_isOldFound          = m_isResult;
            m_isNowFrameCompleted = false;
        }