Beispiel #1
0
 private void OnActionPointBaseUpdated(object sender, BareActionPointEventArgs args)
 {
     try {
         ActionButton btn = GetActionPointBtn(args.ActionPoint.Id);
         btn.SetLabel(args.ActionPoint.Name);
     } catch (ItemNotFoundException) {
         Debug.LogError("Action point button " + args.ActionPoint.Name + " does not exists");
     }
 }
 private void OnActionPointBaseUpdated(object sender, BareActionPointEventArgs args)
 {
     if (CurrentActionPoint == null || args.ActionPoint.Id != CurrentActionPoint.GetId())
     {
         return;
     }
     PositionManualEdit.SetPosition(args.ActionPoint.Position);
     UpdateJointsDynamicList((string)JointsRobotsList.GetValue());   //because of possible invalidation of joints
 }
Beispiel #3
0
 private void OnActionPointBaseUpdated(object sender, BareActionPointEventArgs args)
 {
     if (!IsVisible)
     {
         return;
     }
     if (CurrentActionPoint == null || args.ActionPoint.Id != CurrentActionPoint.GetId())
     {
         return;
     }
     PositionManualEdit.SetPosition(args.ActionPoint.Position);
     if (SceneManager.Instance.SceneStarted)
     {
         UpdateJointsDynamicList(SceneManager.Instance.SelectedRobot.GetId(), SceneManager.Instance.SelectedArmId);  //because of possible invalidation of joints
     }
 }