public void OnItemClicked() { //todo...stay highlighted or selected if in hand m_Button.Select(); m_Button.OnSelect(null); InventoryItemBase item = AttachedItem; if (item != null) { m_Inventory.UseItem(item); /*OnUse() sets a predefined behvaior, * like transforming the position and rotation of item * so it fits in Player's hand. */ item.OnUse(); } }