Ejemplo n.º 1
0
 public override void OnStart(Transform transform)
 {
     baseHelper = new MultipleRectCircleHelper <int>(transform, () => {
         return(new TestItem());
     });
     for (int i = 0; i < 10000; ++i)
     {
         baseHelper.AddItem(i);
     }
     baseHelper.OnStart();
 }
Ejemplo n.º 2
0
        public override void OnStart(Transform transform)
        {
            baseHelper = new MultipleRectCircleHelper <HeroItem>(transform, () => {
                return(new SimpleItem());
            });
            HeroItems = Resources.Load <SpriteAtlas>("HeroItems");
            for (int i = 0; i < HeroName.Length; ++i)
            {
                //模拟人物数据
                HeroItem heroItem;
                heroItem.HeroIMG  = "HeroItems_" + i;
                heroItem.HeroName = HeroName[i];
                baseHelper.AddItem(heroItem);
            }

            baseHelper.OnStart();
        }