How Lyra AssetManager loading the input related stuff?

I advise you not to copy that way of programming:


IsValid check if the object is pendig kill…
The pointer can be not null in this point


And nesting things are horrible to read.

if (A)
{
	if (B)
	{
		if (C)
		{
			if (D)
			{
				//do something
			}
		}
	}
}

You can do this:

if (!A) return;
if (!B) return;
if (!C) return;

if (D)
{
            //do something
}

It’s the same and it’s more understandable and clean.