void GiveObject() { if (inv.CheckToAdd()) { inv.addItem(objectToGive); giveObject = false; } }
private void Collect() { if (inv.CheckToAdd()) { cam.EnableDialog(touchMessage); inv.addItem(item); Destroy(gameObject); } else { cam.EnableDialog("I can't carry anymore items"); } }
void AttemptCollection() { if (inv.CheckToAdd()) { cam.EnableDialog(touchMessage); cont.interactive = false; cont.used = true; inv.addItem(item); AfterItem(); } else { cam.EnableDialog("I can't carry anymore items"); } }