Fix namespaces
This commit is contained in:
parent
c9ad9f22a2
commit
c5808c5fb9
@ -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<NanoBrain.NanoBrain>();
|
||||
this.nanoBrain = GetComponentInChildren<Brain>();
|
||||
}
|
||||
|
||||
#endregion Init
|
||||
|
||||
@ -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<NanoBrain.NanoBrain>();
|
||||
this.nanoBrain = GetComponentInParent<Brain>();
|
||||
if (this.nanoBrain == null || this.nanoBrain.brain == null)
|
||||
return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user