Пример #1
0
    // ********************************************************************


    // ********************************************************************
    #region MonoBehaviour Methods
    // ********************************************************************
    void Awake()
    {
        for (int i = 0; i < m_audioInfo.Count; ++i)
        {
            AudioInfo sound = m_audioInfo[i];
            string    id    = sound.GetID();
            if (m_soundMap.ContainsKey(id))
            {
                Debug.LogWarning("Duplicate ID found: " + id);
            }
            else
            {
                m_soundMap[id] = sound;
            }
        }
    }