diff --git a/Runtime/Scripts/Core/Neuron.cs b/Runtime/Scripts/Core/Neuron.cs index 8e47dc8..d0f9473 100644 --- a/Runtime/Scripts/Core/Neuron.cs +++ b/Runtime/Scripts/Core/Neuron.cs @@ -222,11 +222,10 @@ namespace NanoBrain { public void SleepCheck() { if (this.isSleeping) { #if UNITY_MATHEMATICS - this.bias = new float3(0, 0, 0); + this._outputValue = new float3(0, 0, 0); #else - this.bias = new Vector3(0,0,0); + this._outputValue = new Vector3(0,0,0); #endif - this._outputValue = this.bias; } } @@ -526,12 +525,13 @@ namespace NanoBrain { public virtual void RemoveReceiver(Nucleus receiverToRemove) { this._receivers.RemoveAll(receiver => receiver == receiverToRemove); receiverToRemove.synapses.RemoveAll(synapse => synapse.neuron == this); - } + } #endregion Receivers - public override void ProcessStimulus(Vector3 inputValue) {; + public override void ProcessStimulus(Vector3 inputValue) { + ; this.lastUpdate = Time.time; this.bias = inputValue; this.parent.UpdateFromNucleus(this);