public void Handle(GameEvent evt, Entity entity) { var vehicle = (VehicleEntity)entity; if (_matcher.IsMatched(vehicle.vehicleType.VType)) { DoHandle(evt, vehicle); } }
public void Update(Entity entity) { var vehicle = (VehicleEntity)entity; if (_matcher.IsMatched(vehicle.vehicleType.VType) && vehicle.IsActiveSelf()) { DoUpdate(vehicle); } }