Exemplo n.º 1
0
 //------------------------------------------------------------------
 public void Accelerate(Composite action, int times = 1)
 {
     if (Car.Velocity < Car.Driver.Velocity)
         action.Add (new Repeated (Car.Accelerate, times) {Name = "Accelerate"});
 }
Exemplo n.º 2
0
 //------------------------------------------------------------------
 public void Brake(Composite action, int times = 1)
 {
     action.Add (new Repeated (Car.Brake, times) {Name = "Brake"});
 }