private void Awake()
 {
     OptionSelectionManager.instance.Init();
     loggingManager             = LoggingManager.instance;
     wasKuriDoingActionLastTick = kuriController.IsDoingAction;
     loggingManager.AddLogColumn(robotKCLevel, "");
     KuriGoalPoseTransform = transform.GetChild(0); // TODO: this is awful
 }
Exemple #2
0
 void Start()
 {
     manipHandler   = GetComponent <ManipulationHandler>();
     loggingManager = LoggingManager.instance;
     if (manipHandler != null)
     {
         manipHandler.OnManipulationStarted.AddListener(LogManipulationStart);
         manipHandler.OnManipulationEnded.AddListener(StopLogging);
     }
     pressButton = GetComponent <PressableButtonHoloLens2>();
     if (pressButton != null)
     {
         pressButton.ButtonPressed.AddListener(LogManipulationStart);
         pressButton.ButtonReleased.AddListener(StopLogging);
     }
     interactable = GetComponent <Interactable>();
     if (interactable != null)
     {
         // handled by `OnStateChange`
     }
 }