Hi There,
Just want to say great work.
I have a general question. I often see programmers write such code as:
if (!playerCollider.IsTouchingLayers(LayerMask.GetMask(“Ground”)))
{
return;
}
Question. Why is it that programmers use " is not true" else return?
I would have personally wrote:
if (playerCollider.IsTouchingLayers(LayerMask.GetMask(“Ground”)))
{
//do magic
}
Hope this makes sense.