public override void editing(PropEditController propEditController) { if (PropSimObject != null) { syringe = PropSimObject.getElement(Syringe.BehaviorName) as Syringe; if (syringe != null) { syringe.setPlungePosition(PlungePercentage); } } }
public override void started(float timelineTime, Clock clock) { syringe = PropSimObject.getElement(Syringe.BehaviorName) as Syringe; if (syringe != null) { syringe.plunge(PlungePercentage, Duration); } else { Log.Warning("Prop SimObject does not have a Syringe behavior, cannot push plunger."); } }
public override void editingCompleted(PropEditController propEditController) { syringe = null; }