Pathfinding is happening automatically to generate our GroundEnemy path around towers, we have arrow towers, and we have our base Enemy script class to build our GroundEnemy and FlyingEnemy scripts off of. Let’s get to making our Play Button initiate the spawning of enemies, then implement our two enemy types. We’ll have our GroundEnemy following the path generated by the pathfinding, while our FlyingEnemy simply navigates from the spawn point to the leak point.
Play Mode Setup
The Play button will start the level ...