private void checkInventoryModual(bool inv)
{
InventoryModual.SetActive(inv);
if (inv)
{
toDrag.GetComponent().sprite = null;
toDrag.GetComponent().material = null;
toDrag.SetActive(true);
}
}

Leave a Reply