예제 #1
0
 // Use this for initialization
 void Start()
 {
     //sets static variables based on dragged values
     cursorAnimator  = cursorAnimatorObj;
     cursorAnimation = cursorAnimationObj;
     debugText       = debugTextObj;
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     //sets static variables based on dragged values
     cursorAnimator = cursorAnimatorObj;
     cursorAnimation = cursorAnimationObj;
     debugText = debugTextObj;
 }
예제 #3
0
    //Use this for initialization
    void Start()
    {
        //sets cursor animator and animation variables
        cursorAnimation = GazeStatics.cursorAnimation;
        cursorAnimator  = GazeStatics.cursorAnimator;

        if (debugMode)
        {
            debugText = GazeStatics.debugText;
            debugText.gameObject.SetActive(true);
        }

        //calculates speed of the timer based on duration in seconds
        timerSpeed = 1 / (timerDuration / cursorAnimation.length);

        //place the gaze system on the camera
        PlaceOnCamera();

        //stop cursor timer from auto-playing
        ResetCursor(false);
    }
예제 #4
0
    //Use this for initialization
    void Start()
    {
        //sets cursor animator and animation variables
        cursorAnimation = GazeStatics.cursorAnimation;
        cursorAnimator = GazeStatics.cursorAnimator;

        if (debugMode) {

          debugText = GazeStatics.debugText;
          debugText.gameObject.SetActive(true);

        }

        //calculates speed of the timer based on duration in seconds
        timerSpeed = 1 / (timerDuration / cursorAnimation.length);

        //place the gaze system on the camera
        PlaceOnCamera();

        //stop cursor timer from auto-playing
        ResetCursor(false);
    }