示例#1
0
    /// <summary>
    /// 模拟请求服务器数据并在1s后返回,然后更新列表数据
    /// </summary>
    private IEnumerator LoadDataCoroutine()
    {
        yield return(new WaitForSeconds(1.0f));

        List <object> data = new List <object>();

        for (int i = 0; i < m_LoadSize; i++)
        {
            data.Add(m_Times++.ToString());
        }

        m_ScrollRect_Vertical.PushData(data);
    }