예제 #1
0
 public float GetMixBusLevel()
 {
     if (m_mixBus)
     {
         return(m_mixBus.GetMixedVol());
     }
     else
     {
         return(1.0f);
     }
 }
예제 #2
0
        void Update()
        {
            if (m_parent == null)
            {
                m_mixedVol        = m_volumeMult;
                m_totalImportance = m_importance;
            }
            else
            {
                m_mixedVol        = m_parent.GetMixedVol() * m_volumeMult;
                m_totalImportance = m_parent.GetImportance() + m_totalImportance;
            }

            foreach (BaseAutomaticDuck duck in m_duckList)
            {
                m_mixedVol *= duck.GetDuckVol();
            }
        }