public void vientDeTrouverEtoile(GameObject _etoile)
 {
     moveRandom = false;
     followExcite = false;
     etoileTrouvee = true;
     monEtoile = _etoile;
     speed = 1f;
     freqPheromone = 1f;
     monEtat = ControllerFourmis.Type.Victoire;
     pheromoneLePlusExcite = null;
     listePheromonesExcitesAutour = new List<GameObject>();
     changePheromoneEnVictoire();
 }
    public void vientDeTrouverPheromone(GameObject _pheromoneTrouve)
    {
        if(!traineePheromone.Contains(_pheromoneTrouve)){//si ce n'est pas un phéromone a moi
            pheromoneTrouve = _pheromoneTrouve;
            switch(pheromoneTrouve.GetComponent<pheromone>().myType){
            case (ControllerFourmis.Type.Neutre):
                break;

            case (ControllerFourmis.Type.Victoire):

                if(!listePheromonesExcitesAutour.Contains(pheromoneTrouve)){
                    listePheromonesExcitesAutour.Add(pheromoneTrouve);
                }

                if(monEtat != ControllerFourmis.Type.Excitee && monEtat!=ControllerFourmis.Type.Victoire){ // si je suis pas déja excité  et que je ne suis pas déja en victoire
                    transform.Find("detecteur").GetComponent<CapsuleCollider>().radius = 10;
                    stop = true;
                    moveRandom = false;
                    rechercheMeilleurExcite = true;
                    monEtat = ControllerFourmis.Type.Excitee;
                }
                break;

            case (ControllerFourmis.Type.Danger):
                break;
            case (ControllerFourmis.Type.Aide):
                break;
            case (ControllerFourmis.Type.Excitee):
                break;
            }
        }
    }
 void Start()
 {
     traineePheromone = new List<GameObject>();
     listePheromonesExcitesAutour = new List<GameObject>();
     monEtat = ControllerFourmis.Type.Neutre;
 }