Esempio n. 1
0
    public void OrbitPlus()
    {
        //button for reducing smoothtime
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.orbitingSpeed += 1;
    }
Esempio n. 2
0
    public void DisableOrbit()
    {
        //button for enabling orbitmode
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.enableAutomaticOrbiting = false;
    }
Esempio n. 3
0
    public void SmoothMinus()
    {
        //button for reducing smoothtime
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.smoothTime -= 1;
    }
Esempio n. 4
0
    public void SmoothPlus()
    {
        //button for increasing smoothtime
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.smoothTime += 1;
    }
Esempio n. 5
0
    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
    }
Esempio n. 6
0
    public void SpeedPlus()
    {
        //button for increasing speed
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.xSpeed += 1;
        camScript.ySpeed += 1;
    }
Esempio n. 7
0
    public void SpeedMinus()
    {
        //button for reducing speed
        SmoothOrbitCam camScript = targetCamSystem.GetComponent <SmoothOrbitCam>();

        camScript.xSpeed -= 1;
        camScript.ySpeed -= 1;
    }
Esempio n. 8
0
    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;
    }