- Home /
Question by
Sinperhezine · Nov 01, 2012 at 05:52 AM ·
gameobjectinventoryremove
Need help with inventory
i have an inventory made, the problem is picking up in game object while removing it from the world the problem is that it also removed it from the inventory as well. here is the code that i'm using
if (TPC.pointingto.transform.tag == ("item"))
{
Inv.AddItems(TPC.pointingto.transform.gameObject, 1);
Destroy(TPC.pointingto.transform.gameObject);
}
Comment