void Update()
{
if (Input.GetKeyDown(inputManagerDatabase.CharacterSystemKeyCode))
{
if (!characterSystem.activeSelf)
{
characterSystemInventory.openInventory();
}
else
{
if (toolTip != null)
{
toolTip.deactivateTooltip();
}
characterSystemInventory.closeInventory();
}
}
if (Input.GetButtonDown("Inventory"))
{
if (!inventory.activeSelf)
{
mainInventory.openInventory();
}
else
{
if (toolTip != null)
{
toolTip.deactivateTooltip();
}
mainInventory.closeInventory();
}
}
if (Input.GetKeyDown(inputManagerDatabase.CraftSystemKeyCode))
{
if (!craftSystem.activeSelf)
{
craftSystemInventory.openInventory();
}
else
{
if (cS != null)
{
cS.backToInventory();
}
if (toolTip != null)
{
toolTip.deactivateTooltip();
}
craftSystemInventory.closeInventory();
}
}
}