Esempio n. 1
0
 private void OnActionPointJointsUpdated(object sender, RobotJointsEventArgs args)
 {
     if (!IsVisible && ContainerJoints.activeInHierarchy)
     {
         return;
     }
     try {
         ActionButton btn = GetButton(args.Data.Id, JointsDynamicList);
         Debug.LogError(btn.GetLabel());
         btn.GetComponent <TooltipContent>().enabled = !args.Data.IsValid;
         btn.transform.parent.GetComponent <ServiceButton>().State = args.Data.IsValid;
     } catch (ItemNotFoundException) {
         // not currently opened action point
     }
 }