void Start() { // Events GameController.HereFromDel += SetIsHereFromSimulation; // Catmull-Rom spline. It draws trajectories between positions spline = GetComponent <GameController>().spline; // Controllers controller = GetComponent <GameController>().controller; gameController = GetComponent <GameController>(); stateMessageControl = GetComponent <StateMessageControl>(); }
void Start() { // Scorbot inner target innerTarget = GetComponent <GameController>().innerTarget; // Camera cam = GetComponent <GameController>().cam; // Scorbot robot = GetComponent <GameController>().robot; // Controllers gameController = GetComponent <GameController>(); stateMessageControl = GetComponent <StateMessageControl>(); // Events GameController.ScorbotDel += SetScorbot; }
void Start() { // Drawing tool lineRenderer = GetComponent <LineRenderer>(); // Controllers manualInputControl = GetComponent <ManualInputControl>(); selectionControl = GetComponent <SelectionControl>(); targetControl = GetComponent <TargetControl>(); commandControl = GetComponent <CommandControl>(); panelControl = GetComponent <PanelControl>(); stateMessageControl = GetComponent <StateMessageControl>(); cameraControl = GetComponent <CameraControl>(); backupFileControl = GetComponent <BackUpFileControl>(); effectorFileControl = GetComponent <EffectorFileControl>(); // Initial config cameraControl.SetIsProcessing(true);// axisCamera.SetActive(true); defaultPosition = target.position; target.GetComponent <ClampName>().textPanel.gameObject.SetActive(false); target.gameObject.SetActive(false); SetTarget(null); UpdateTargets(targetControl.GetNames()); // Get commands names commandsDropdown.AddOptions(commandControl.GetNames()); CommandsDropdown_IndexChanged(0); byXYZPRDropdown.AddOptions(new List <string>() { "X", "Y", "Z", "P", "R" }); // Ports list portsDropdown.AddOptions(new List <string>(controller.List_Ports())); // Scorbot ER IX version list scorbotVersionDropdown.AddOptions(new List <string>() { "Original" }); }
void Start() { gameController = GetComponent <GameController>(); stateMessageControl = GetComponent <StateMessageControl>(); }