Example #1
0
 // A java function (updateText) calls this function using UnitySendMessage.
 public void getLocationChangeNotification(string text)
 {
     Debug.Log("getting new user location from android");
     //lnglat.text = plugin.updateLocation ();
     umc = GetComponent <UserMovementController> ();
     umc.ToNewStringSpot(plugin.updateLocation());
 }
Example #2
0
 void Update()
 {
     // Update the Text UI's text to the user's updated location.
     // TODO: update location only when the user location has actually been changed.
     longlat.text = plugin.updateLocation();
 }
Example #3
0
 public void getLocationChangeNotification(string text)
 {
     Debug.Log("getting new user location from android");
     location = plugin.updateLocation();
 }