public void ResetEvent(CameraEffectEvent e)
        {
            for (int i = 0; i < m_eventList.Count; i++)
            {
                if (m_eventList[i].EffectType == e.EffectType)
                {
                    m_eventList.RemoveAt(i);
                    break;
                }
            }

               // m_eventList.Remove(e);
            if (m_eventList.Count == 0)
                enabled = false;
        }
Exemplo n.º 2
0
        public void AddEvent(CameraEffectEvent e)
        {
            for (int i = 0; i < m_eventList.Count; i++)
            {
                if (m_eventList[i].EffectType == e.EffectType)
                {
                    Debug.LogWarning("can't add camera effect duplicated:" + e.EffectType);
                    return;
                }
            }

            m_eventList.Add(e);
            m_eventList.Sort();

            enabled = true;
        }
Exemplo n.º 3
0
        public void ResetEvent(CameraEffectEvent e)
        {
            for (int i = 0; i < m_eventList.Count; i++)
            {
                if (m_eventList[i].EffectType == e.EffectType)
                {
                    m_eventList.RemoveAt(i);
                    break;
                }
            }

            // m_eventList.Remove(e);
            if (m_eventList.Count == 0)
            {
                enabled = false;
            }
        }
        public void AddEvent(CameraEffectEvent e)
        {

            for (int i = 0; i < m_eventList.Count; i++)
            {
                if (m_eventList[i].EffectType == e.EffectType)
                {
                    Debug.LogWarning("can't add camera effect duplicated:" + e.EffectType);
                    return;
                }
            }

            m_eventList.Add(e);
            m_eventList.Sort();

            enabled = true;
        }