How to create a patrolling behaviour in Unity

In this quick tutorial, I will show you how you can make a patrolling enemy behaviour in Unity that automatically detects the end of the platform and if it reaches it will change direction. So a perfect behaviour for an enemy in your platformer game!

OverlapCircle documentation:

Assets used:

#unitytutorial #gamedevwithmark #shorts

Voir sur youtube

CRYENGINE Speed Level: "River Street"

Soleil absorbe Valhalla Game Studios