Пример #1
0
        private void GenerateItem()
        {
            var items = ItemGenerator.GenerateItem_point(m_itemPrefab, m_pointParent);

            foreach (var item in items)
            {
                ItemGenerator.DirectToPlanet(item.transform, m_targetPlanet);
            }
        }
Пример #2
0
 private void GenerateItem()
 {
     StartCoroutine(ItemGenerator.WaitFrameAction(1, () =>
     {
         var items = ItemGenerator.GenerateItem_onPlanet_random(m_itemPrefab, m_targetPlanet, m_createCount, m_distanceFromGround);
         foreach (var item in items)
         {
             ItemGenerator.DirectToPlanet(item.transform, m_targetPlanet.transform);
         }
     }));
 }