예제 #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());
 }
예제 #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();
 }
예제 #3
0
 public void getLocationChangeNotification(string text)
 {
     Debug.Log("getting new user location from android");
     location = plugin.updateLocation();
 }