Пример #1
0
        public void RingDistribution(List<TwitterDataBase> tweetList, Vector3 center, float radius)
        {
            List<FaderEntityToObject<TwitterDataBase>> tmpObjectList = new List<FaderEntityToObject<TwitterDataBase>> ();

            float step = 360f / (tweetList.Count < 1 ? 1 : tweetList.Count);

            foreach (TwitterDataBase item in tweetList)
            {
                FaderTwitterToObject tmp = new FaderTwitterToObject (FaderTwitterToObject.EntityType.Twitter, item, PrimitiveType.Sphere);
                tmp.PositionObject (FullCircle (tweetList.FindIndex (x => x.TweetID == item.TweetID), step, center, radius));
                tmpObjectList.Add (tmp);
            }
        }
Пример #2
0
        public void LineDistribution(List<TwitterDataBase> tweetList, Vector3 start, Vector3 dir, float step, float inc, bool alt)
        {
            List<FaderEntityToObject<TwitterDataBase>> tmpObjectList = new List<FaderEntityToObject<TwitterDataBase>> ();

            foreach (TwitterDataBase item in tweetList)
            {
                FaderTwitterToObject tmp = new FaderTwitterToObject (FaderTwitterToObject.EntityType.Twitter, item);
                tmp.PositionObject (LineUp (start, tweetList.FindIndex (x => x.TweetID == item.TweetID), dir, step, inc, alt));
                tmpObjectList.Add (tmp);
            }
        }