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