private void HighlightAndShowDescription( bool isOn, bool withItemDescription, Script_InventoryManager.Types type ) { Debug.Log($"HighlightSlot{isOn}"); foreach (Image img in outlines) { img.enabled = isOn; int myId = GetComponent <Script_InventoryViewSlot>().Id; Script_Game.Game.HighlightItem(myId, isOn, withItemDescription, type); } isHighlighted = isOn; }
void Awake() { type = GetComponent <Script_InventoryViewSlot>().Type; }