public void Executed(Maneuver m, bool isCopy) { // maneuvers in a copy of the main state are "what if" projections so do not notify about // completed maneuver if (!isCopy && m.onExecuted != null) { m.onExecuted(m); } Remove(m); }
public void Executed(Maneuver m) { if (m.onExecuted != null) { m.onExecuted(m); } Remove(m); }