Exemplo n.º 1
0
    // Update is called once per frame
    public void Update()
    {
        if (m_updateList == null)
        {
            return;
        }

        m_tempCount = m_updateList.Count;

        for (int i = 0; i < m_tempCount; ++i)
        {
            m_tempUpdate = m_updateList[i];
            if (m_tempUpdate == null)
            {
                m_updateList[i] = null;
                continue;
            }

            if (m_tempUpdate.enableUpdate)
            {
                m_tempUpdate.UpdateFrame();
            }
        }

        m_tempUpdate = null;
    }