Exemplo n.º 1
0
 public override void editing(PropEditController propEditController)
 {
     if (PropSimObject != null)
     {
         syringe = PropSimObject.getElement(Syringe.BehaviorName) as Syringe;
         if (syringe != null)
         {
             syringe.setPlungePosition(PlungePercentage);
         }
     }
 }
Exemplo n.º 2
0
 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.");
     }
 }
Exemplo n.º 3
0
 public override void editingCompleted(PropEditController propEditController)
 {
     syringe = null;
 }