protected override void Update()
{
base.Update ();
// If the unit is currently moving, call the function to update
// the position in the path the unit is following
if (path != null && currentWaypoint < path.vectorPath.Count)
{
moveToPosition ();
}
else if (aiming)
{
}
}