Exemple #1
0
    private void ExpandModelCommand(PhraseRecognizedEventArgs args)
    {
        PopulateDescription pop = new PopulateDescription();

        pop.populateObject(this.gameObject);
        this.transform.localScale = new Vector3(1.0f, 10.0f, 1.0f);
        //this.transform.localScale.y


        // Set the expand model flag.
        isModelExpanding = true;

        //ExpandModel.Instance.Expand();
    }
    // Called by GazeGestureManager when the user performs a Select gesture
    void OnSelect()
    {
        // On each Select gesture, toggle whether the user is in placing mode.
        placing = !placing;

        // If the user is in placing mode, display the spatial mapping mesh.
        if (placing)
        {
            SpatialMappingManager.Instance.DrawVisualMeshes = true;
            //this.transform.parent.localScale = new Vector3(1.0f, 1.0f, 1.0f);
        }
        // If the user is not in placing mode, hide the spatial mapping mesh.
        else
        {
            PopulateDescription pop = new PopulateDescription();
            print(this.gameObject.name);
            pop.populateObject(this.gameObject);
            SpatialMappingManager.Instance.DrawVisualMeshes = false;


            this.transform.parent.localScale = new Vector3(1.0f, 10.0f, 1.0f);
        }
    }