Exemple #1
0
 //stops movement
 public void SetIdle()
 {
     myNavMesh.isStopped = true;
     if (npcAnimations)
     {
         npcAnimations.SetAnimator("idle");
     }
     navState = NavStates.IDLE;
 }
 string GetLabel(MessageField field, double y)
 {
     if (this.format.name == "vehicle_status")
     {
         if (field.name == "nav_state")
         {
             NavStates s = (NavStates)y;
             return(s.ToString());
         }
         else if (field.name == "arming_state")
         {
             ArmingStates s = (ArmingStates)y;
             return(s.ToString());
         }
         else if (field.name == "failure_detector_status")
         {
             FailureDetectorFlags s = (FailureDetectorFlags)y;
             return(s.ToString());
         }
     }
     return(null);
 }