24 lines
506 B
C#
24 lines
506 B
C#
using UnityEngine;
|
|
|
|
public class Receptor {
|
|
public SensoryNeuroid neuroid;
|
|
public void SetValue(Vector3 value) {
|
|
if (neuroid != null) {
|
|
neuroid.SetInput(neuroid.id, value);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public class SensoryNeuroid : Neuroid {
|
|
public Receptor receptor;
|
|
|
|
public SensoryNeuroid(NeuroidNetwork net, int id) : base(net) {
|
|
this.name = "sensory neuroid";
|
|
this.id = id;
|
|
this.receptor = new Receptor {
|
|
neuroid = this
|
|
};
|
|
}
|
|
|
|
} |