void Start () { //Hide map icons with given tag MapVisibility.setVisibilityForTag (tagForHiddenObjects, false); // Draw a line from this node to all children drawLinesToChildren (); }
public void TurnsOnMapVisibilityForGivenTag() { MapObject obj1 = SetUpMapObject("dontToggle", false); MapObject obj2 = SetUpMapObject("dontToggle", false); MapObject obj3 = SetUpMapObject("doToggle", false); MapObject obj4 = SetUpMapObject("doToggle", false); MapVisibility.setVisibilityForTag("doToggle", true); Assert.False(obj1.isVisible()); Assert.False(obj2.isVisible()); Assert.True(obj3.isVisible()); Assert.True(obj4.isVisible()); }
public void completeNode () { // Can't complete without unlocking if (state == NodeState.UNLOCKED) { state = NodeState.COMPLETED; // Show all hidden objects if (tagForHiddenObjects != null) { Debug.Log (tagForHiddenObjects.Length); MapVisibility.setVisibilityForTag (tagForHiddenObjects, true); } // Unlock all child nodes for (int i = 0; i < childNodes.Length; i++) { childNodes [i].unlockNode (); } } }