public void Button_Item() { //Interact with item. In case we picked up the item, it should no longer be on the list if (PlayerManager.LocalPlayerScript.inputController.Interact(tileItem.transform)) { UITileList.RemoveTileListItem(transform.gameObject); } ; }
public void Button_Item() { //clicking on tile does nothing if (tile && item == null) { return; } //Interact with item. In case we picked up the item, it should no longer be on the list if (PlayerManager.LocalPlayerScript.mouseInputController.Interact(item.transform, false)) { UITileList.RemoveTileListItem(transform.gameObject); } ; }