Fix namespaces

This commit is contained in:
Pascal Serrarens 2026-04-08 09:38:05 +02:00
parent c9ad9f22a2
commit c5808c5fb9
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ using NanoBrain;
namespace Passer.CreatureControl { namespace Passer.CreatureControl {
[RequireComponent(typeof(NanoBrain.NanoBrain))] [RequireComponent(typeof(Brain))]
public class Ant : Insect { public class Ant : Insect {
private readonly float inertia = 0.2f; private readonly float inertia = 0.2f;
private readonly float smellRadius = 0.2f; private readonly float smellRadius = 0.2f;
@ -16,7 +16,7 @@ namespace Passer.CreatureControl {
public AntennaTouch touchLeft; public AntennaTouch touchLeft;
public AntennaTouch touchRight; public AntennaTouch touchRight;
public NanoBrain.NanoBrain nanoBrain; public Brain nanoBrain;
// brain output // brain output
public Neuron hasFood; public Neuron hasFood;
// brain input // brain input
@ -37,7 +37,7 @@ namespace Passer.CreatureControl {
if (this.targetRig != null) if (this.targetRig != null)
this.animator = this.targetRig.animator; this.animator = this.targetRig.animator;
this.nanoBrain = GetComponentInChildren<NanoBrain.NanoBrain>(); this.nanoBrain = GetComponentInChildren<Brain>();
} }
#endregion Init #endregion Init

View File

@ -6,13 +6,13 @@ namespace Passer.CreatureControl {
public class Mouth : MonoBehaviour { public class Mouth : MonoBehaviour {
public GameObject foodPrefab; public GameObject foodPrefab;
public NanoBrain.NanoBrain nanoBrain; public Brain nanoBrain;
public Neuron havingFood; public Neuron havingFood;
public Nucleus enableFoodPheromones; public Nucleus enableFoodPheromones;
void Awake() { void Awake() {
this.nanoBrain = GetComponentInParent<NanoBrain.NanoBrain>(); this.nanoBrain = GetComponentInParent<Brain>();
if (this.nanoBrain == null || this.nanoBrain.brain == null) if (this.nanoBrain == null || this.nanoBrain.brain == null)
return; return;