Example #1
0
 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);
     }
     ;
 }
Example #2
0
 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);
     }
     ;
 }