Esempio n. 1
0
 protected virtual void Start()
 {
     LockingEventsCache.Instance.OnObjectLockingEvent += OnObjectLockingEvent;
     SceneManager.Instance.OnRobotSelected            += OnRobotSelected;
     if (MoveButton != null && MoveButton2 != null)
     {
         MoveButton.SetDescription(MOVE_BTN_LABEL);
         MoveButton2.SetDescription(MOVE_BTN_LABEL);
     }
     if (RemoveButton != null)
     {
         RemoveButton.SetDescription(REMOVE_BTN_LABEL);
     }
     if (RenameButton != null)
     {
         RenameButton.SetDescription(RENAME_BTN_LABEL);
     }
     if (CalibrationButton != null)
     {
         CalibrationButton.SetDescription(CALIBRATION_BTN_LABEL);
     }
     if (OpenMenuButton != null)
     {
         OpenMenuButton.SetDescription(OPEN_MENU_BTN_LABEL);
     }
     if (RobotSteppingButton != null)
     {
         RobotSteppingButton.SetDescription(ROBOT_STEPPING_MENU_BTN_LABEL);
     }
     if (RobotSelectorButton != null)
     {
         RobotSelectorButton.SetDescription(ROBOT_SELECTOR_MENU_BTN_LABEL);
     }
 }