Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (isMobile == false)
        {
            this.GetComponent <TrailRenderer>().enabled = false;
        }

        if (sensorDeviceName == null)
        {
            sensorDeviceName = transform.name;
        }

        myColor = GetComponentInChildren <SpriteRenderer>().color;
        myLine  = GetComponent <LineRenderer>();
        //myLine.positionCount = 20;
        //GetComponent<TrailRenderer>().startColor = GetComponent<SpriteRenderer>().color;

        deviceDes        = transform.position;
        conversionParams = conversionParams = GisConvert.MakeConversionParameters(coordinateSettings.gridType);

        if (devicesController == null)
        {
            devicesController = GetComponentInParent <SensorDevicesController>();
        }

        Deselect();
        StopHover();
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     conversionParams = GisConvert.MakeConversionParameters(coordinateSettings.gridType);
 }