WEBVTT

00:00.260 --> 00:00.770
Hello guys.

00:00.770 --> 00:01.700
Welcome to the video.

00:01.700 --> 00:05.660
In this one I want to do a bit of a cleanup and then I'm going to give this project to you.

00:05.660 --> 00:06.230
Okay.

00:06.530 --> 00:11.990
So I think we can make a folder in a scripts folder and let's give it a name of a player.

00:11.990 --> 00:15.020
And we're going to put these two into this folder.

00:16.060 --> 00:16.750
All right.

00:18.140 --> 00:20.870
Then let me check the animations.

00:21.350 --> 00:23.270
And this is good, I like it.

00:23.970 --> 00:25.260
And nothing else here.

00:25.260 --> 00:27.000
Let's go to the scripts.

00:29.570 --> 00:31.370
This player.

00:31.370 --> 00:32.750
Animation events.

00:32.750 --> 00:33.740
This is fine.

00:33.740 --> 00:34.640
We can close it.

00:34.640 --> 00:35.660
Player is fine.

00:35.660 --> 00:36.470
We know it.

00:36.950 --> 00:39.020
Start point is okay.

00:39.440 --> 00:40.520
Finish point.

00:40.520 --> 00:41.720
It's okay.

00:42.280 --> 00:44.830
This one is fine as well, I think.

00:45.130 --> 00:46.750
Checkpoints can be reactivated.

00:46.750 --> 00:52.720
I think it's going to be really troublesome to go over each checkpoint manually, so probably it is

00:52.720 --> 00:58.810
a good idea to make boolean in the game manager and then update each checkpoint according to the boolean

00:58.810 --> 00:59.950
in the game manager.

01:01.280 --> 01:03.380
It can be done maybe in two ways.

01:03.380 --> 01:08.090
One of them is Game Manager would take all of the checkpoints and give them boolean, just like we did

01:08.090 --> 01:09.410
with the fruits over here.

01:10.700 --> 01:16.700
We we could collect all checkpoints and then each checkpoint would have true or false according to the

01:16.700 --> 01:18.560
boolean we have on a game manager.

01:18.560 --> 01:22.010
Or we can simply create a header.

01:22.640 --> 01:23.870
Checkpoints.

01:26.680 --> 01:29.650
And then over here I can do serialize field.

01:29.680 --> 01:30.190
Private.

01:30.190 --> 01:32.110
Actually, we need to have public here.

01:32.140 --> 01:33.310
Public bool.

01:34.390 --> 01:37.150
Can reactivate.

01:37.480 --> 01:38.740
Simple as that.

01:38.740 --> 01:40.690
And then on the checkpoint.

01:42.010 --> 01:47.890
I'm going to open start method and in the start I'm going to do can be re-activated equals to game manager

01:47.890 --> 01:49.180
dot instance.

01:50.030 --> 01:51.530
Can reactivate.

01:52.460 --> 01:54.560
Yeah, I think this is okay.

01:55.680 --> 01:56.760
Yeah, let it be like that.

01:56.760 --> 01:57.780
I think it's okay.

01:58.230 --> 01:59.730
So that's all what I want to do.

02:00.210 --> 02:02.220
I think this is fine.

02:03.840 --> 02:05.010
Yeah, this is good.

02:05.040 --> 02:06.870
That zone is okay.

02:07.500 --> 02:08.520
This is good.

02:08.520 --> 02:09.210
All right.

02:10.260 --> 02:13.140
Now all checkpoints will be.

02:14.190 --> 02:15.690
Following this boolean over here.

02:15.690 --> 02:18.630
So if you want to reactivate checkpoint check this to true.

02:18.810 --> 02:20.610
I will delete this extra banana.

02:20.610 --> 02:21.570
I'll take the apple.

02:21.570 --> 02:22.950
Place it here.

02:23.430 --> 02:27.090
Cherry maybe here and banana over here okay.

02:27.090 --> 02:30.180
And I'm going to wrap this project into archive and give it to you.

02:30.180 --> 02:31.680
And I'll see you in the next section.
