private void OnClickRight(UISlot uislot)
        {
            //Cancel select
            selected_slot       = -1;
            selected_right_slot = -1;
            ActionSelectorUI.Get(GetPlayerID()).Hide();

            //Show action selector
            ItemSlot  islot = (ItemSlot)uislot;
            CraftData item  = islot.GetCraftable();

            if (item != null && item.GetItem() != null && item.GetItem().actions.Length > 0)
            {
                selected_right_slot = islot.index;
                ActionSelectorUI.Get(GetPlayerID()).Show(islot);
            }
        }
 public ItemData GetItem()
 {
     if (item != null)
     {
         return(item.GetItem());
     }
     return(null);
 }
        //----- Crafting Completion -----

        //Craft immediately
        public void CraftCraftable(CraftData data)
        {
            ItemData         item      = data.GetItem();
            ConstructionData construct = data.GetConstruction();
            PlantData        plant     = data.GetPlant();
            CharacterData    character = data.GetCharacter();

            if (item != null)
            {
                CraftItem(item);
            }
            else if (construct != null)
            {
                CraftConstruction(construct);
            }
            else if (plant != null)
            {
                CraftPlant(plant, 0);
            }
            else if (character != null)
            {
                CraftCharacter(character);
            }
        }