public void OrbitPlus() { //button for reducing smoothtime SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.orbitingSpeed += 1; }
public void DisableOrbit() { //button for enabling orbitmode SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.enableAutomaticOrbiting = false; }
public void SmoothMinus() { //button for reducing smoothtime SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.smoothTime -= 1; }
public void SmoothPlus() { //button for increasing smoothtime SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.smoothTime += 1; }
void Update() { //get the variable to show SmoothOrbitCam camScript = CameraSystem.GetComponent <SmoothOrbitCam>(); //get the text component in the gameobject Text label = gameObjectForShowingSpeed.GetComponent <Text>(); label.text = camScript.xSpeed.ToString(); //set the text in the text component //get the text component in the gameobject Text label2 = gameObjectForShowingSmooth.GetComponent <Text>(); label2.text = camScript.smoothTime.ToString(); //set the text in the text component //get the text component in the gameobject Text label3 = gameObjectForShowingOrbitSpeed.GetComponent <Text>(); label3.text = camScript.orbitingSpeed.ToString(); //set the text in the text component //get the text component in the gameobject Text label4 = gameObjectForShowingOrbit.GetComponent <Text>(); label4.text = camScript.enableAutomaticOrbiting.ToString(); //set the text in the text component }
public void SpeedPlus() { //button for increasing speed SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.xSpeed += 1; camScript.ySpeed += 1; }
public void SpeedMinus() { //button for reducing speed SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>(); camScript.xSpeed -= 1; camScript.ySpeed -= 1; }
void Start() { //get camera system smoothOrbitCam = FindObjectOfType <SmoothOrbitCam>().gameObject.GetComponent <SmoothOrbitCam>(); RotaQuat.eulerAngles = CamRotation; //apply speed CamMovingSpeed = CamMovingSpeed / 10; }
void Start() { //get camera system smoothOrbitCam = FindObjectOfType <SmoothOrbitCam>().gameObject.GetComponent <SmoothOrbitCam>(); RotaQuat.eulerAngles = CamRotation; //apply speed CamMovingSpeed = CamMovingSpeed / 10; // EventCenter.AddListener("DoubleClik", onTest); _prevouseClick = Time.realtimeSinceStartup; }