Unity Mobile Game Development: Enemy AI and Waypoints
This lesson is only available with a subscription.
Lesson 28. Creating a function to check for transitions
We already have a transition from running to a waypoint to a player, but in this tutorial we refactor our code to separate the transition conditionals from our main Update loop.
In this series of Unity tutorials, we'll demonstrate how to setup our waypoints in order to allow our enemies to seek and destroy the player. We'll also discuss how to create a basic AI for our enemies. Having a computer understand our level is one of the most pertinent problems facing any game developer. Waypoints are a quick and powerful way to create a simple model of a level that an AI can understand. Once we have our waypoints set-up and working, we'll create an enemy AI that can find and attack the player.