40 lines
993 B
C#
40 lines
993 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ThisTran : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 在非unity坐标系中的x轴坐标值
|
|
/// </summary>
|
|
public float AssociativeX;
|
|
/// <summary>
|
|
/// 在非unity坐标系中的y轴坐标值
|
|
/// </summary>
|
|
public float AssociativeY;
|
|
|
|
public CoordinateConversionManager coordinateConversionManager;
|
|
void Start()
|
|
{
|
|
StartCoroutine(Wait());
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
IEnumerator Wait()
|
|
{
|
|
yield return new WaitForSeconds(1f);
|
|
transform.position=GisPointTo3DPoint.Instance.GetWorldPoint(117.018402f,36.661855f);
|
|
Debug.Log(coordinateConversionManager.GetUnityPosition(AssociativeX,AssociativeY));
|
|
MyPlane[] myPlanes=transform.GetComponentsInChildren<MyPlane>();
|
|
foreach(var item in myPlanes)
|
|
{
|
|
item.SetmyVector3();
|
|
}
|
|
}
|
|
}
|