예제 #1
0
    void ActivateButton()
    {
        touchCount++;
        uiPathManager.pickedNode = this.gameObject;
        uiPathManager.changecolorclick();

        GetComponent <Image>().color = Color.grey;
        // thisObjectsMaterial.color = Color.gray;
        leftClickedOn          = true;
        nodePathManager.pathID = nodePathID;
        activatePathChange     = true;
        //transform.parent.GetComponentInChildren<rotationPanelPopUp>().reducePanel();
    }
예제 #2
0
    public void OnMouseOver()
    {
        if (!clickedOn)
        {
            uiPathManager.pickedNode = this.gameObject;
            uiPathManager.changecolorclick();


            GetComponent <Image>().color = Color.red;
            clickedOn = true;
            nodePathManager.pathID = nodePathID;

            // print("works");
        }
        else if (clickedOn)
        {
            GetComponent <Image>().color = Color.white;
            clickedOn = false;
            nodePathManager.pathID = 0;
        }
    }