Example #1
0
    void Start()
    {
        buildType = ROCHEScript.instance.buildType;

        // Make the rigid body not change rotation
        if (rigidbody)
        {
            rigidbody.freezeRotation = true;
        }

        buildingBounds = new Bounds(Vector3.zero, Vector3.one);
        GameObject edificio = GameObject.Find("Edificio");

        if (edificio != null)
        {
            buildingBounds = new Bounds(edificio.transform.position, Vector3.zero);
            Renderer[] renderers = edificio.GetComponentsInChildren <Renderer> ();
            foreach (Renderer r in renderers)
            {
                buildingBounds.Encapsulate(r.bounds);
            }
        }
        target        = buildingBounds.center;
        kinectManager = ROCHEScript.instance.kinectManager;
    }
Example #2
0
 void Start()
 {
     buildType = ROCHEScript.instance.buildType;
     kinectManager = ROCHEScript.instance.kinectManager;
 }
Example #3
0
    void Start()
    {
        buildType = ROCHEScript.instance.buildType;

        // Make the rigid body not change rotation
        if (rigidbody)
            rigidbody.freezeRotation = true;

        buildingBounds = new Bounds(Vector3.zero,Vector3.one);
        GameObject edificio = GameObject.Find("Edificio");
        if (edificio != null)
        {
            buildingBounds = new Bounds (edificio.transform.position, Vector3.zero);
            Renderer[] renderers = edificio.GetComponentsInChildren<Renderer> ();
            foreach (Renderer r in renderers)
            {
                buildingBounds.Encapsulate (r.bounds);
            }
        }
        target = buildingBounds.center;
        kinectManager = ROCHEScript.instance.kinectManager;
    }
Example #4
0
 void Start()
 {
     buildType     = ROCHEScript.instance.buildType;
     kinectManager = ROCHEScript.instance.kinectManager;
 }