public void HighlightNodes(TurretBlueprint passedTurret) { if ((turretToBuild != null && turretToBuild.Equals(passedTurret)) || (passedTurret == null)) { UnSelectTurret(); foreach (Node node in nodes) { node.GetComponent <Renderer>().material.color = node.notEnoughMoneyColor; } } else { SelectTurretToBuild(passedTurret); foreach (Node node in nodes) { node.GetComponent <Renderer>().material.color = node.TurretPositionColor; } } }