123456789101112131415161718192021222324252627282930313233343536 |
- using System.Collections;
- using UnityEngine;
- public class TestGness : MonoBehaviour
- {
- private SvrPlugin plugin = null;
- float[] gness = new float[3];
- public TextMesh Tx;
- // double[] dt = new double[3];//20米外的gps数据
- double Dt=0;
- IEnumerator Initialize()
- {
- yield return new WaitUntil(() => plugin.IsInitialized() == true);
- //plugin.getGnss(ref Dt, gness);
- Debug.Log("ness = {" + gness[0] + "," + gness[1] + "," + gness[2] + "," + "}");
- Tx.text = gness[0].ToString() + "," + gness[1].ToString() + "," + gness[2].ToString();
- }
- // Start is called before the first frame update
- void Start()
- {
- plugin = SvrPlugin.Instance;
-
- }
- // Update is called once per frame
- void Update()
- {
- StartCoroutine(Initialize());
- }
- }
|