title: How to make an enemy in a tower defence game follow waypoints and deal with 2 direction options in Unity
body: <p>So I am trying to make a tower defence game and I have a system for making the enemies follow a set of waypoints from the start to the end. However, this doesn't work with a fork in the path, as below:</p>
  <p><a href="https://i.stack.imgur.com/CsH13.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CsH13.png" alt="Tower Defence Game Path Split Screenshot" /></a></p>
  <p>I am currently just having them work through an array of waypoints, but how would I change this to allow some to go on the top path and some to go on the bottom one? I would preferably be looking to be able to add more than 1 split in later levels.</p>
  <p>Any help is greatly appreciated!</p>