コード例 #1
0
 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);
 }
コード例 #2
0
    public void Start()
    {
        Xhologram.GetComponent <Renderer>().enabled = false;
        halo = GetComponent("Halo");

        Xhologram.GetComponent <TextMeshPro>().isOverlay = true;

        halo.GetType().GetProperty("enabled").SetValue(halo, false, null);
    }
コード例 #3
0
    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);
            }
        }
    }