Пример #1
0
 private void Start()
 {
     enemyPicks = new List <PickableSprite>();
     foreach (KeyValuePair <int, Sprite> pair in SpriteList.GetEnemyIDs())
     {
         PickableSprite ps = Instantiate(pickableSpritePrefab, enemyHolder);
         ps.Init(pair.Key, pair.Value);
         enemyPicks.Add(ps);
     }
     boosterPicks = new List <PickableSprite>();
     foreach (KeyValuePair <int, Sprite> pair in SpriteList.GetBoosterIDs())
     {
         PickableSprite ps = Instantiate(pickableSpritePrefab, boosterHolder);
         ps.Init(pair.Key, pair.Value);
         boosterPicks.Add(ps);
     }
 }