Hello guys.
Welcome to another video.
So this is going to be the last video in this section.
I know UI section was pretty long and I understand if you feel a bit tired from the UI.
Also UI usually is very difficult to manage and it's not always as easy as it seems to set up a couple
of buttons here and there.
So if it was your first experience, congratulations!
Yeah, we did UI for the game and this was very simple UI.
Imagine what you need to do when you making some sort of RPG game or shooter, right?
Anyway, I tried to be pretty careful so we don't really need to do a cleanup.
There are some things that could be done differently and it's not necessarily better or worse.
It just could be done differently.
Yeah.
I'm just going to give you a quick example.
We could combine these two into one game object and one script.
It could be Settings Manager and you would have.
To move.
Just these methods to.
To the script and change the name over here and it would work pretty well the same.
And here is a good example of what I mean by saying that it's not necessarily worse or better.
It just would be different because in coding everything is like that.
There's just the way that you prefer and that's it.
Like, you know, if you cut cucumber and you do slices or you cut cucumber and you do small cubes,
it doesn't really matter, because in the end of the day it's still a cucumber.
So it's same here.
You can do things differently, but they don't change much.
As long as your game works, it's pretty much okay.
So yeah, not a big difference.
Uh, on the game Manager, I've thought of decomposing the script because now it is responsible for
many things.
It is respawning the player.
It is creating the object, it's controlling the fruits, it's saving the game, it's changing the scenes
for the game.
But actually we just needed some centralized place to do all of the general stuff.
So for now, I'm going to keep it as it is because, for example, we could make, um, some sort of
scene manager just like this one, but another one and that would just load the scenes we need, but
then we would have to make a reference in a game manager and still call it inside of method on the game
manager.
So I don't really see a point of changing anything here.
Same for the save methods.
So we save things and we could make some sort of save manager and do everything there, but then we
would have to pass these variables into save manager.
So I think like it.
Well it's okay, let it be like that okay.
So we're not going to do any cleanup here for now.
I'm pretty happy with how it works.
I hope you like it too.
If something comes up, I'll let you know.
As of now, I'm just going to take this project.
I'm going to wrap it into archive and I'm going to give it to you.
You can download it, you can compare it to yours, check for mistakes, or maybe you can just continue
development from this point.
And there is just a little bit left to finish the course.
So let's go.
I'll see you in the next section.