Пример #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();
    }
    // Use this for initialization
    void Start()
    {
        base.Start();

        if (isMobile == false)
        {
            this.GetComponent <TrailRenderer>().enabled = false;
        }

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

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

        deviceDes        = transform.position;
        conversionParams = GisConvert.MakeSweref99L1800();
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     conversionParams = GisConvert.MakeConversionParameters(coordinateSettings.gridType);
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     conversionParams = GisConvert.MakeSweref99L1800();
 }