i’m trying to make an inventory system using an array of gameobjects, and i’m using a bool to keep track if the inventory is full or not, but the “if [2] !=” always comes as true, even though the space is null.
this is my code, idk what to do
void Update()
{
if (sylladex [2] != null) {
isFull = true;
} else {
isFull = false;
}
}