Answer the question
In order to leave comments, you need to log in
Why does if fire if conditions are not met?
There are two lists, I want that if they were not empty, then the code was called, but it is called even when 1 of the lists is completely empty.
Debug.Log(ZombieMaxArrayList.Count); //тут 0
Debug.Log(zombieArrayNew.Count); // тут 1
if (zombieArrayNew != null && ZombieMaxArrayList!= null) // я как-то не так проверку делаю на то, пустые списки или неТ?
{
Debug.Log(ZombieMaxArrayList.Count);//тут 0
Debug.Log(zombieArrayNew.Count);//тут 1
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question