private void OnMouseExit() { if (!canvas.GetComponent <ShowAllHolograms>().displayItemInfo.isOn) { hologram.GetComponent <Renderer>().enabled = false; } Xhologram.GetComponent <Renderer>().enabled = false; halo.GetType().GetProperty("enabled").SetValue(halo, false, null); }
public void Start() { Xhologram.GetComponent <Renderer>().enabled = false; halo = GetComponent("Halo"); Xhologram.GetComponent <TextMeshPro>().isOverlay = true; halo.GetType().GetProperty("enabled").SetValue(halo, false, null); }
private void OnMouseOver() { if (!informationPanel.activeSelf) { if (!canvas.GetComponent <ShowAllHolograms>().displayItemInfo.isOn) { hologram.GetComponent <Renderer>().enabled = true; } Xhologram.GetComponent <Renderer>().enabled = true; halo.GetType().GetProperty("enabled").SetValue(halo, true, null); if (Input.GetMouseButtonDown(0)) { canvas.GetComponent <Solve>().removeItem(itemName); } } }