Is there any way to check if a array exists or has a value in a specific element?
I have this line of code
if (rummen[positionX, positionY].Levandesaker[0].alive == true)
And it works fine as long as it exists. But what I want to do is
if (rummen[positionX, positionY].Levandesaker != null)
{
if (rummen[positionX, positionY].Levandesaker[0].alive == true)
{
}
}
Does anyone know what Im after or can help me out with what im looking for?