// Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0)) { genome.AddNeuron(1, ref innovations, 3); network.DestroyNetwork(); network = genome.CreateNetwork(); network.VisualizeNetwork(panel.GetComponent <RectTransform>(), perceptron, link, loopLink, false); print(genome.GetPerceptronGenes().Count); } if (Input.GetMouseButtonDown(1)) { genome.AddLink(1, .5f, ref innovations, 3, 3); network.DestroyNetwork(); network = genome.CreateNetwork(); network.VisualizeNetwork(panel.GetComponent <RectTransform>(), perceptron, link, loopLink, false); } }