Some more game development in Unity: rats that detect when a platform ends (using hit distance to the ground) or is blocked (eg with a barrel). The rat then turns & heads in the other direction. This allows a rat to be spawned without having to hardcode a path for it to follow. Video was captured on a Nintendo Switch EDEV system.
#indiedev #madewithunity #gamedev