示例#1
0
 // Use this for initialization
 void Start()
 {
     Instance = this;
     DontDestroyOnLoad(gameObject);
     Latitude  = 0f;
     Longitude = 0f;
     Altitude  = 0f;
     StartCoroutine(StartGPSService());
 }
示例#2
0
 void Start()
 {
     gpsProvider = GetComponent <GPSProvider> ();
     StartCoroutine(StartReadingGPSData());
 }