using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Assets.Scripts { public class InventoryTrash : MonoBehaviour { public Texture close; public Texture open; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void onMouseEnter() { gameObject.GetComponent().texture = open; } public void onMouseLeave() { gameObject.GetComponent().texture = close; } public void deleteItem() { } } }