using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace SimpleInventorySystem { public class ContextMenuManagerUI : MonoBehaviour { public static ContextMenuManagerUI instance; public GameObject itemInspectMenu; [HideInInspector] public ItemUI inspectItem; public GameObject TacticalRigInspectionWindow; private void Awake() { instance = this; } public bool IsInspectingItem() { return inspectItem != null; } public bool ItemInspectMenuHasFocus() { return InventorySystem.IsMouseOverUI(itemInspectMenu); } public void OpenContextMenu(ItemUI uiContext) { if(inspectItem != null) { CloseContextMenu(); } //ContextMenuUI.transform.SetParent(uiContext, false); itemInspectMenu.SetActive(true); itemInspectMenu.transform.position = uiContext.transform.position; inspectItem = uiContext; //ContextMenuUI.transform.localScale = new Vector3(1, 1, 1); Button inspectButton = itemInspectMenu.transform.Find("Inspect").GetComponent