WEBVTT

00:00.080 --> 00:00.590
Hello guys.

00:00.590 --> 00:01.730
Welcome to another video.

00:01.730 --> 00:03.920
So this is going to be the last video in this section.

00:03.920 --> 00:09.050
I know UI section was pretty long and I understand if you feel a bit tired from the UI.

00:09.080 --> 00:14.690
Also UI usually is very difficult to manage and it's not always as easy as it seems to set up a couple

00:14.690 --> 00:15.860
of buttons here and there.

00:15.860 --> 00:19.310
So if it was your first experience, congratulations!

00:19.310 --> 00:23.000
Yeah, we did UI for the game and this was very simple UI.

00:23.000 --> 00:28.100
Imagine what you need to do when you making some sort of RPG game or shooter, right?

00:28.400 --> 00:33.410
Anyway, I tried to be pretty careful so we don't really need to do a cleanup.

00:33.410 --> 00:39.380
There are some things that could be done differently and it's not necessarily better or worse.

00:39.380 --> 00:40.880
It just could be done differently.

00:40.880 --> 00:41.090
Yeah.

00:41.090 --> 00:42.800
I'm just going to give you a quick example.

00:42.800 --> 00:47.780
We could combine these two into one game object and one script.

00:47.780 --> 00:51.140
It could be Settings Manager and you would have.

00:52.280 --> 00:53.420
To move.

00:54.350 --> 00:57.350
Just these methods to.

00:58.270 --> 01:03.550
To the script and change the name over here and it would work pretty well the same.

01:03.550 --> 01:08.920
And here is a good example of what I mean by saying that it's not necessarily worse or better.

01:08.920 --> 01:12.850
It just would be different because in coding everything is like that.

01:12.850 --> 01:15.310
There's just the way that you prefer and that's it.

01:15.310 --> 01:21.040
Like, you know, if you cut cucumber and you do slices or you cut cucumber and you do small cubes,

01:21.040 --> 01:24.790
it doesn't really matter, because in the end of the day it's still a cucumber.

01:24.790 --> 01:25.810
So it's same here.

01:25.810 --> 01:28.210
You can do things differently, but they don't change much.

01:28.210 --> 01:30.700
As long as your game works, it's pretty much okay.

01:30.700 --> 01:32.740
So yeah, not a big difference.

01:33.040 --> 01:39.880
Uh, on the game Manager, I've thought of decomposing the script because now it is responsible for

01:39.880 --> 01:40.870
many things.

01:40.870 --> 01:42.730
It is respawning the player.

01:42.730 --> 01:48.910
It is creating the object, it's controlling the fruits, it's saving the game, it's changing the scenes

01:48.910 --> 01:49.570
for the game.

01:49.570 --> 01:54.040
But actually we just needed some centralized place to do all of the general stuff.

01:54.040 --> 02:00.040
So for now, I'm going to keep it as it is because, for example, we could make, um, some sort of

02:00.040 --> 02:06.010
scene manager just like this one, but another one and that would just load the scenes we need, but

02:06.010 --> 02:10.780
then we would have to make a reference in a game manager and still call it inside of method on the game

02:10.780 --> 02:11.230
manager.

02:11.230 --> 02:14.110
So I don't really see a point of changing anything here.

02:14.110 --> 02:17.350
Same for the save methods.

02:17.350 --> 02:23.080
So we save things and we could make some sort of save manager and do everything there, but then we

02:23.080 --> 02:25.990
would have to pass these variables into save manager.

02:25.990 --> 02:27.370
So I think like it.

02:27.370 --> 02:29.770
Well it's okay, let it be like that okay.

02:29.770 --> 02:31.690
So we're not going to do any cleanup here for now.

02:31.690 --> 02:33.340
I'm pretty happy with how it works.

02:33.340 --> 02:34.660
I hope you like it too.

02:34.660 --> 02:36.760
If something comes up, I'll let you know.

02:36.850 --> 02:39.070
As of now, I'm just going to take this project.

02:39.070 --> 02:42.130
I'm going to wrap it into archive and I'm going to give it to you.

02:42.160 --> 02:47.260
You can download it, you can compare it to yours, check for mistakes, or maybe you can just continue

02:47.260 --> 02:48.640
development from this point.

02:48.640 --> 02:51.160
And there is just a little bit left to finish the course.

02:51.160 --> 02:52.360
So let's go.

02:52.360 --> 02:53.890
I'll see you in the next section.
