public void buildTransition()
 {
     state = gameObject.GetComponent <State>();
     try {
         SensorEffector[] anArray = body.GetComponents <SensorEffector>();
         foreach (var anim in anArray)
         {
             if (anim.switchboxKey == switchboxKey)
             {
                 animator = anim;
             }
         }
     }
     catch (NullReferenceException) {
         Debug.Log("Transition buildTransition Failure, likely that the robot body wasn't attached.");
     }
 }
示例#2
0
 public Neuron(SensorEffector animatorInput)
 {
     animator = animatorInput;
     synapses = new List <Synapse>();
 }