Synapse CreateSynapse(Neuron input, Neuron output) { GameObject g = (GameObject)Instantiate(SynapsePrefab); //g.transform.SetParent(transform); Synapse s = g.GetComponent <Synapse>(); s.Create(input, output); return(s); }
Synapse CreateSynapse(Neuron input, Neuron output) { GameObject g = (GameObject)Instantiate(SynapsePrefab); //g.transform.SetParent(transform); Synapse s = g.GetComponent <Synapse>(); s.Create(input, output); return(s); }