Movement
public abstract class Movement : UnitLogicModule, IMovement
This abstract class handles unit movement: it uses NavMesh for ground units and free flight for flying units. When a unit receives an order to move, this component sets up the destination to move to.
Implemented by two subclasses depending on the unit’s movement data:
GroundMovement— uses a UnityNavMeshAgentto move on the ground.FlyingMovement— moves freely in the air, ignoring the NavMesh.
If you need a custom movement type, you can also implement the IMovement interface directly instead of inheriting from Movement.