so i made array but i don’t know if my array is filled, i just want to know if all of my array is filled, i want to make debug.log(“slots is full”), how can i do that ??
Use a variable to check if he is filled, you start with the hypothese that he is fill and if you have a null element so your hypothese is wrong and he is not fill.
bool fill = true;
for(int i=0; i< slotG.length ; i++){
if(slotG *== null){*
fill = false;
break;
}
}
if(fill){
Debug.Log(“Is filled”);
}