From c5808c5fb9558ca62381caf050fe1049872318bd Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 8 Apr 2026 09:38:05 +0200 Subject: [PATCH] Fix namespaces --- Runtime/Scripts/Ant.cs | 6 +++--- Runtime/Scripts/Mouth.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/Scripts/Ant.cs b/Runtime/Scripts/Ant.cs index 363329e..580251a 100644 --- a/Runtime/Scripts/Ant.cs +++ b/Runtime/Scripts/Ant.cs @@ -4,7 +4,7 @@ using NanoBrain; namespace Passer.CreatureControl { - [RequireComponent(typeof(NanoBrain.NanoBrain))] + [RequireComponent(typeof(Brain))] public class Ant : Insect { private readonly float inertia = 0.2f; private readonly float smellRadius = 0.2f; @@ -16,7 +16,7 @@ namespace Passer.CreatureControl { public AntennaTouch touchLeft; public AntennaTouch touchRight; - public NanoBrain.NanoBrain nanoBrain; + public Brain nanoBrain; // brain output public Neuron hasFood; // brain input @@ -37,7 +37,7 @@ namespace Passer.CreatureControl { if (this.targetRig != null) this.animator = this.targetRig.animator; - this.nanoBrain = GetComponentInChildren(); + this.nanoBrain = GetComponentInChildren(); } #endregion Init diff --git a/Runtime/Scripts/Mouth.cs b/Runtime/Scripts/Mouth.cs index 907af2a..1d70517 100644 --- a/Runtime/Scripts/Mouth.cs +++ b/Runtime/Scripts/Mouth.cs @@ -6,13 +6,13 @@ namespace Passer.CreatureControl { public class Mouth : MonoBehaviour { public GameObject foodPrefab; - public NanoBrain.NanoBrain nanoBrain; + public Brain nanoBrain; public Neuron havingFood; public Nucleus enableFoodPheromones; void Awake() { - this.nanoBrain = GetComponentInParent(); + this.nanoBrain = GetComponentInParent(); if (this.nanoBrain == null || this.nanoBrain.brain == null) return;