Beispiel #1
0
 public void ClosePanel()
 {
     nodePanel.SetActive(false);
     linePanel.SetActive(false);
     xButton.SetActive(false);
     node = null;
 }
Beispiel #2
0
    public void OpenNodePanel(NNet.Node node)
    {
        if (node == null)
        {
            return;
        }

        nodePanel.SetActive(true);
        xButton.SetActive(true);
        linePanel.SetActive(false);

        this.node           = node;
        nodeID.text         = "Node ID: " + node.id.ToString();
        nodeType.text       = "Type: " + node.type.ToString();
        nodeActivation.text = "Activation: " + node.activation.ToString();
    }
Beispiel #3
0
 public void SetNode(NNet.Node node)
 {
     this.node  = node;
     label.text = node.id.ToString();
 }