Ejemplo n.º 1
0
        private void OnVegetationItemInvisible(ItemSelectorInstanceInfo itemSelectorInstanceInfo,
                                               VegetationItemIndexes vegetationItemIndexes, string vegetationItemID)
        {
            if (OnBeforeDestroyColliderDelegate != null)
            {
                GameObject colliderObject = RuntimePrefabStorage.GetRuntimePrefab(
                    itemSelectorInstanceInfo.VegetationCellIndex,
                    itemSelectorInstanceInfo.VegetationCellItemIndex);
                OnBeforeDestroyColliderDelegate(colliderObject);
            }

            RuntimePrefabStorage.RemoveRuntimePrefab(itemSelectorInstanceInfo.VegetationCellIndex,
                                                     itemSelectorInstanceInfo.VegetationCellItemIndex, ColliderPool);
        }
Ejemplo n.º 2
0
 private void OnVegetationItemInvisible(ItemSelectorInstanceInfo itemSelectorInstanceInfo,
                                        VegetationItemIndexes vegetationItemIndexes, string vegetationItemID)
 {
     RuntimePrefabStorage.RemoveRuntimePrefab(itemSelectorInstanceInfo.VegetationCellIndex, itemSelectorInstanceInfo.VegetationCellItemIndex, RuntimePrefabPool);
 }