Update unit animation direction when unit changes directions.