// Use this for initialization void Start() { DroneTy = droneSpeech.GetComponent <typeWirter>(); MatildaTy = matildaSpeech.GetComponent <typeWirter>(); droneScript = drone.GetComponent <drone>(); camScript = cam.GetComponent <cameraControl>(); }
// Use this for initialization void Start() { rowanTy = rowanSpeech.GetComponent <typeWirter>(); MatildaTy = matildaSpeech.GetComponent <typeWirter>(); // droneScript = rowan.GetComponent<drone>(); camScript = cam.GetComponent <cameraControl>(); }
// Start is called before the first frame update void Start() { my_camera = Camera.main.GetComponent <cameraControl>(); wheel = transform.GetChild(0); my_camera.my_owner_is(transform); boostBar.SetMaxBoost((int)_nitro); }
private void buttonCamera_Click(object sender, RoutedEventArgs e) { if (webcam == null) { webcam = new cameraControl(webcamDevice, ProcessFrame); // lepton initial List <Lepton.Handle> devices = Lepton.GetDevices(); leptonDevice = devices[0]; lepton = leptonDevice.Open(); // get color palette lepton.vid.GetPcolorLut(); foreach (object value in Enum.GetValues(typeof(Lepton.Vid.PcolorLut))) { string[] parts = Enum.GetName(typeof(Lepton.Vid.PcolorLut), value).Split(new char[] { '_' }); string result = ""; for (int i = 0; i < parts.Length - 1; i += 1) { result += " " + parts[i][0].ToString() + parts[i].Substring(1).ToLower(); } if (result != " User") { comboBoxPalette.Items.Add(result); } } comboBoxPalette.IsEnabled = true; // set default color palette to fusion comboBoxPalette.SelectedIndex = 1; lepton.vid.SetPcolorLut((Lepton.Vid.PcolorLut) 1); // radiometer initial leptonRoi = lepton.rad.GetSpotmeterRoi(); rectStart.X = leptonRoi.startCol; rectStart.Y = leptonRoi.startRow; rectEnd.X = leptonRoi.endCol; rectEnd.Y = leptonRoi.endRow; } if (captureInProgress) { buttonCamera.Content = "Camera Restart"; webcam.stopTimer(); } else { buttonCamera.Content = "Camera Stop"; webcam.startTimer(); buttonSave.IsEnabled = true; } captureInProgress = !captureInProgress; }
// Start is called before the first frame update void Start() { isClicked = false; script = GameObject.Find("StageManager").GetComponent <manager>(); //Field cameraObject = GameObject.Find("Main Camera"); //("FieldCenter"); //Field cameraScript = cameraObject.GetComponent <cameraControl>(); SceneNavigatorObj = GameObject.Find("SceneNavigator"); scene_script = SceneNavigatorObj.GetComponent <SceneNavigator>(); }
void OnTriggerEnter(Collider activator) { Debug.Log(this.name + " got triggered by " + activator.name); // find the CameraControl script by accessing Main Camera, and then GetComponent on it cameraControl camControl = Camera.main.GetComponent <cameraControl>(); // override CameraControl values with this trigger's values if (lookOverride != null) // for more on "null", see CameraControl.cs script { camControl.lookAtTarget = lookOverride; } if (moveOverride != null) { camControl.moveToTarget = moveOverride; } }
void Start() { //triggerMask = 1 << 15; rigidbody = playerChar.GetComponent <Rigidbody>(); controlCamera = playerCamera.gameObject.GetComponent <cameraControl>(); }
// Use this for initialization void Start() { roboTy = roboSpeech.GetComponent <typeWirter>(); MatildaTy = matildaSpeech.GetComponent <typeWirter>(); camScript = cam.GetComponent <cameraControl>(); }
void Awake() { player = GameObject.FindObjectOfType <PlayerController>(); cam = GameObject.FindObjectOfType <cameraControl>(); }