private void Awake() { rootUnit = gameObject.GetComponentInParent <Module.Unit>(); members = new List <GameObject>(); initialPositions = new List <Vector3>(); initialRotations = new List <Quaternion>(); }
public void Awake() { isActive = false; rootUnit = gameObject.GetComponentInParent <Module.Unit>(); ag = rootUnit.rootModule.ag; neurons = new List <Neuron> [3]; for (int i = 0; i < 3; i++) { neurons[i] = new List <Neuron>(); } synapses = new List <Synapse>(); relayCatalog = new Dictionary <string, List <Relay> >(); }
// Use this for initialization void Awake() { rootUnit = gameObject.GetComponentInParent <Module.Unit>(); fitness = 0; }