| | |
| | | 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); |