public void Update() { switch (Type) { case CPPNNeuronType.Input: Phene = new CPPNInputNeuron(); break; case CPPNNeuronType.Output: Phene = new CPPNOutputNeuron(ActivationFunction.Function); break; case CPPNNeuronType.Hidden: Phene = new CPPNHiddenNeuron(ActivationFunction.Function); break; case CPPNNeuronType.Bias: Phene = new CPPNBiasNeuron(); break; } }