miepzerino
2025-04-02 5e14cc355fd3a4a27a0196f504fee16d68f39612
Assets/Scripts/Managers/GameManager.cs
@@ -165,10 +165,9 @@
                    if (playerInventory != null)
                    {
                        Item item = dropable.dropable;
                        playerInventory.AddItem(item, dropable.dropAmount);
                        Debug.Log("CellWorldPosition: " + cellWorldPosition);
                        Debug.Log("TileGameObjectPosition: " + tileGameObject.transform.position);
                        CharacterLootObtained(tileGameObject.transform.position, item, dropable.dropAmount);
                        int dropAmount = dropable.GetRandomDropAmount();
                        playerInventory.AddItem(item, dropAmount);
                        CharacterLootObtained(tileGameObject.transform.position, item, dropAmount);
                    }
                }
                tilemap.SetTile(cellCoord, null);