public void ClosePanel() { nodePanel.SetActive(false); linePanel.SetActive(false); xButton.SetActive(false); node = null; }
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(); }
public void SetNode(NNet.Node node) { this.node = node; label.text = node.id.ToString(); }