示例#1
0
 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> >();
 }
示例#3
0
 // Use this for initialization
 void Awake()
 {
     rootUnit = gameObject.GetComponentInParent <Module.Unit>();
     fitness  = 0;
 }