// Lister chaque case valide de la salle pour poser un pion public List <CaseBehavior> getAvailableCells() { List <CaseBehavior> availableCells = new List <CaseBehavior>(); for (int i = 0; i < transform.childCount; i++) { if (transform.GetChild(i).GetComponent <CaseBehavior>() != null) { CaseBehavior currentCase = transform.GetChild(i).GetComponent <CaseBehavior>(); if (currentCase.isAvailable()) { availableCells.Add(currentCase); } } } return(availableCells); }