예제 #1
0
        void Start()
        {
            this.geo = this.GetComponent <Georeferencer> ();

            this.jsonAsset = Resources.Load <TextAsset> (this.jsonPath);

            this.StartCoroutine(GenerateMeshes());
        }
예제 #2
0
        void Start()
        {
            this.georef = this.GetComponent <Georeferencer> ();

            foreach (LatLonColumn col in cols)
            {
                // Georeference
                Vector2 georefed = this.georef.MeanPositionGeoreference(col.postion);

                // Instantiate
                GameObject           colObj = (GameObject)GameObject.Instantiate(this.columnPrefab, new Vector3(georefed.x, 0, georefed.y), Quaternion.identity, this.transform);
                ColumnController     ctrl   = colObj.GetComponent <ColumnController> ();
                GeorefPositionKeeper keeper = colObj.GetComponent <GeorefPositionKeeper> ();

                // Set params
                ctrl.targetHeightScale = col.height;
                keeper.latLon          = col.postion;
            }
        }
예제 #3
0
 void Start()
 {
     this.geo = this.GetComponentInParent <Georeferencer> ();
 }