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(); }
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; } }