2D point and click along one axis

This script allows for 2D point-and-click movement along the X-axis only.

To use it:


 * 1) Set your game's Movement method to Point And Click, and your Camera perspective to 2D.
 * 2) Create a NavMesh that covers the area you wish the Player to move.  It does not need to be too thin - it just needs to encompass the area that the Player can move.
 * 3) Paste the code below into a C# script named PointClickHorizontal2D, and attach it to any object in your scene

PointClickHorizontal2D.cs