private ItemInfo getColliderObjectItemInfo(Collider other) { ItemInfoScript infoS = (ItemInfoScript)other.gameObject.GetComponent(typeof(ItemInfoScript)); return(infoS.getItemInfo()); }
private ItemInfo getItemInfo(GameObject item) { ItemInfoScript s = (ItemInfoScript)item.GetComponent <ItemInfoScript> (); return(s.getItemInfo()); }