[System.Serializable]
public class WeaponList {
public int index;
public string name;
public GameObject go;
public GameObject sights;
}
how can i “foreach” the sights ? he is inside a generic list, i’ve tryed that but without sucess:
foreach(GameObject sight in weapList.sights) {
}