Discovering ways to implement AI behaviour for a small game.
Unity: Checking a GameObjects layer against multiple LayerMasks
Continuing on from the previous post about Tags vs Layers this post leads into one of my favourite C# coding features; Extension Methods. Here we see a Raycast checking for hits against multiple possible layers. In this example we are scanning ahead of a moving projectile and triggering the Destroy function on both the projectile... Continue Reading →