From the course: Unity: Integrating GPS and Points of Interest

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Connect the GPS class to the place finder app

Connect the GPS class to the place finder app - Unity Tutorial

From the course: Unity: Integrating GPS and Points of Interest

Connect the GPS class to the place finder app

So straight in, let's jump into the cameras and open up the scroll view, and let's drill down to find our point of interest button. Now, what I'm going to do is just simply temporarily rename it to be called ButtonPrefab, like so. And I'm going to right click down at the bottom and create a folder for my prefabs. There we go. Okay, cool, fantastic. So now what we need to do is just drag out this ButtonPrefab a few times. So one, two, and three, there we go. Now, the second one, I'm going to have this as the food one. The third one will be hotels. And the final one will be for the parks. Okay, cool, now first things first, let's just hook up the on click events. So the point of interest has already got it. On food when you click, scene control, let's drop you in. Let's just hook this up to Ask Google, for instead of points of interest, we could ask for food. You could also ask for bars, or we could ask for restaurants. I'm going to use food. And then I'm going to add a second scene…

Contents