public override void execute(AnomalousMvcContext context)
 {
     if (Name != null)
     {
         MusclePosition musclePosition = context.getModel <MusclePosition>(Name);
         if (musclePosition != null)
         {
             context.applyMusclePosition(musclePosition, MedicalConfig.CameraTransitionTime);
         }
         else
         {
             Log.Warning("Cannot find muscle position {0}.", Name);
         }
     }
     else
     {
         Log.Warning("No name defined.");
     }
 }
Exemple #2
0
 public override void execute(AnomalousMvcContext context)
 {
     context.applyMusclePosition(MusclePosition, MedicalConfig.CameraTransitionTime);
 }