check if element in list contains gameobject unity code example
Example: checking if a list contains a value unity
if(list.Contains(item)){
//It does
}else{
//It not does
}
if(list.Contains(item)){
//It does
}else{
//It not does
}