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