public void ChangeDirection() { _counter = 0; _currentDirection = (Direction)ManageFunction.Random(0, 2); }
public MoveRandomAI(int frequency, float speed) { _frequency = frequency * ManageFunction.Random(1, 4); _speed = (speed * ManageFunction.Random(1, 2) * 0.5f); ChangeDirection(); }