use of com.cas.circuit.control.VS10N051CControl in project TeachingInSimulation by ScOrPiOzzy.
the class VS10N051CLogic method initialize.
@Override
public void initialize(Node elecCompMdl) {
super.initialize(elecCompMdl);
List<Magnetism> magnetisms = elecComp.getDef().getMagnetisms();
for (Magnetism magnetism : magnetisms) {
List<ControlIO> controlIOs = magnetism.getControlIOs();
for (ControlIO controlIO : controlIOs) {
button = controlIO;
break;
}
}
// 添加碰撞监听control
control = new VS10N051CControl(button);
elecCompMdl.addControl(control);
}
Aggregations