Used to control the direction and speed of the movement by a given velocity
Source
void walk(Vector2 velocity)
{
_velocity = velocity;
}
Used to control the direction and speed of the movement by a given velocity
void walk(Vector2 velocity)
{
_velocity = velocity;
}