Exemplo n.º 1
0
    //Updates the bottom UI component to reflect target node properties
    public void UpdateNodePopUp(NodeProperties nProp)
    {
        string output = "";

        switch (nProp.NodeEvent)
        {
        case (NodeProperties.EventType.COMBAT):
            output += "There are enemies near this location. Brace for combat!";
            break;

        case (NodeProperties.EventType.NARRATIVECORE):
            output += "Continue your story upon venturing here.";
            output += ResourceModToString(nProp.ResourceMod);
            break;

        case (NodeProperties.EventType.NARRATIVE):
            output += "There seems to be something interesting happening here.";
            output += ResourceModToString(nProp.ResourceMod);
            break;
        }
        ChangePopUp.GetComponent <Text>().text = output;
    }
Exemplo n.º 2
0
 //clears the text displayed in the info panel when called
 public void ClearNodePopUp()
 {
     ChangePopUp.GetComponent <Text>().text = "";
 }