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