Hello, I am wanting to model ants following pheromones, which represent specific behavior patterns, which the ant will switch between in a user-defined sequence. Here is the relevant portion of my Ant class:
public class Ant : MonoBehaviour
{
public Colony colony;
public Caste caste;
public int id;
public Vector3 direction;
public AntState antState;
public PheromoneState pheromoneState;
private Pheromone[] pheromoneSequence;
private Pheromone currentPheromone;
...
private IEnumerator Controller()
{
...
Debug.Log("Ant" + id + " changes pheromones and begins again: " + currentPheromone.name);
...
}