Beispiel #1
0
 public override void UpdateAfterSimulation()
 {
     try
     {
         if (npcCrewBlock.GetDiffuseColor() != Color.Red.ColorToHSV() && forceColor)
         {
             npcCrewBlock.CubeGrid.ColorBlocks(npcCrewBlock.SlimBlock.Position, npcCrewBlock.SlimBlock.Position, Color.Red.ColorToHSV());
         }
         if (npcCrewBlock.IsWorking && npcCrewBlock.IsFunctional)
         {
             if (playAnimation)
             {
                 MoveHead();
                 MoveLeftArm();
                 MoveRightArm();
                 MoveLCD();
             }
         }
     }
     catch (Exception e)
     {
         MyVisualScriptLogicProvider.ShowNotificationToAll("Update Error" + e, 2500, "Red");
     }
 }