Esempio n. 1
0
    // Use this for initialization
    protected void Start()
    {
        lmbclicked      = false;
        textToSpeech    = GetComponent <TextToSpeech>();
        scribbler       = GetComponent <Scribbler>();
        highlightPoints = GetComponent <HighlightPoints>();
        //changeColor = GetComponent<ChangeColor>();
        if (character != null)
        {
            trackerClientSimpleRobot = character.GetComponent <TrackerClientSimpleRobot>();
            _rightHand = trackerClientSimpleRobot.getRightArm();
        }
        if (skeletonPlayer != null)
        {
            trackerClientRecorded = skeletonPlayer.GetComponent <TrackerClientRecorded>();
            fileListener          = skeletonPlayer.GetComponent <FileListener>();
        }
        clouds = GameObject.FindObjectsOfType <PointCloud>();

        textToSpeechButtonIsActive    = false;
        scribblerButtonIsActive       = false;
        highlightPointsButtonIsActive = false;
        changeColorButtonIsActive     = false;
        deleteButtonIsActive          = false;

        //Load menu buttons textures
        textToSpeechTextureActive   = Resources.Load("speechToTextActive") as Texture;
        textToSpeechTextureInactive = Resources.Load("speechToText") as Texture;

        scribblerTextureActive   = Resources.Load("scribblerActive") as Texture;
        scribblerTextureInactive = Resources.Load("scribbler") as Texture;

        highlightPointsTextureActive   = Resources.Load("highlightPointsActive") as Texture;
        highlightPointsTextureInactive = Resources.Load("highlightPoints") as Texture;

        changeColorTextureActive   = Resources.Load("changeColorActive") as Texture;
        changeColorTextureInactive = Resources.Load("changeColor") as Texture;

        deleteTextureActive   = Resources.Load("deleteActive") as Texture;
        deleteTextureInactive = Resources.Load("delete") as Texture;

        changeColorGO = GameObject.FindGameObjectWithTag("ColorPicker");
        changeColorGO.SetActive(false);

        duration = 0;

        durationGO = GameObject.FindGameObjectWithTag("Duration");
        durationGO.SetActive(false);
        isWheelActive = false;

        currentExecutionTime = 0.0f;
        currentCloud         = 0;
    }
    // Use this for initialization
    void Start()
    {
        IsActive = false;
        mat      = Resources.Load("cloudmat") as Material;

        if (character != null)
        {
            TrackerClientSimpleRobot tcsr = character.GetComponent <TrackerClientSimpleRobot>();
            _rightHand = tcsr.getRightArm();
        }

        if (pointCloudSkeleton != null)
        {
            trackerClientRecorded = pointCloudSkeleton.GetComponent <TrackerClientRecorded>();

            Debug.Log("number of humans = " + trackerClientRecorded.Humans.Count);
        }

        bonesTransforms = new List <Transform>();
        _myPoints       = new float[500];
        resetMyPoints();
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        //_handheldListener = new UDPHandheldListener(1998, "negativespace");

        IsActive = false;

        if (character != null)
        {
            TrackerClientSimpleRobot tcsr = character.GetComponent <TrackerClientSimpleRobot>();
            _rightHand = tcsr.getRightArm();
        }

        if (pointCloudSkeleton != null)
        {
            trackerClientRecorded = pointCloudSkeleton.GetComponent <TrackerClientRecorded> ();

            Debug.Log("number of humans = " + trackerClientRecorded.Humans.Count);
        }

        lineRenderer = null;

        _myPoints = new List <Vector3>();
    }