Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GiveDrop()
- {
- if (target2 != null)
- {
- int id = 12;
- int value = 1;
- target2.GetComponent<Inventory>().addItemToInventory(id, value);
- }
- else
- {
- Debug.Log("Ei");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement