コード例 #1
0
 public void RemoveSelectedSlotEnergy()
 {
     if (m_SelectedSlot.EnergyType != null)
     {
         m_EnergyManager.AddEnergy(m_SelectedSlot.EnergyType.Value);
         m_SelectedSlot.ClearSlot();
     }
 }
コード例 #2
0
ファイル: CraftingTable.cs プロジェクト: youwho42/a-look-into
    public void ClearCurrentRecipe()
    {
        craftableItem = null;
        craftedSlot.ClearSlot();

        foreach (CraftingSlot slot in ingredientSlots)
        {
            slot.ClearSlot();
        }
    }
コード例 #3
0
 private void ClearCraftingSlots()
 {
     input1.ClearSlot();
     input2.ClearSlot();
     resultSlot.ClearSlot();
 }