Example #1
0
        void YesRender()
        {
            WebPage.gameObject.SetActive(true);
            ForeClose.gameObject.SetActive(true);
            string           name = information[2];
            float            lat  = float.Parse(information[0]);
            float            lon  = float.Parse(information[1]);
            StreetViewObject obj  = GetStreetObject(name, lat, lon);

            print(information[2]);
            //SphereObject.GetComponent<StreetViewCube>().Latitude = obj.latitude;
            //SphereObject.GetComponent<StreetViewCube>().Longitude = obj.longitude;

            _streetViewCube.Latitude  = obj.latitude;
            _streetViewCube.Longitude = obj.longitude;
            PlaceName.GetComponent <VTextInterface>().RenderText = name;
            if (information[3] == "1")
            {
                ForeClose.GetComponent <VTextInterface>().RenderText = "Likely to be foreclosed";
            }
            if (information[3] == "0")
            {
                ForeClose.GetComponent <VTextInterface>().RenderText = "Unlikely to be foreclosed";
            }
            if (RenderPage == 0)
            {
                WebPage.gameObject.SetActive(false);
            }
            information.Clear();
        }
Example #2
0
        StreetViewObject GetStreetObject(string location, float latitude, float longitude)
        {
            StreetViewObject obj = new StreetViewObject();

            obj.location  = location;
            obj.latitude  = latitude;
            obj.longitude = longitude;
            return(obj);
        }