Example #1
0
        void Refresh()
        {
            AccountSaveData data = XMLSaver.saveData.GetAccountData(_context.userId);

            HeadSpriteUtils.Instance.SetHead(head, _context.userId);
            List <int> friends = XMLSaver.saveData.GetFriendsLst(_context.userId);

            tweets.Clear();
            for (int i = 0; i < friends.Count; i++)
            {
                List <TweetData> ftweets = null;
                ZoneManager.Instance.id2Tweet.TryGetValue(i, out ftweets);
                if (ftweets == null)
                {
                    continue;
                }
                for (int m = 0; m < ftweets.Count; m++)
                {
                    AddTweet(ftweets[m]);
                }
            }
            scroll.SetDatas <TweetData>(tweets.orderedList);
            tweets.Clear();
        }