Hello guys.
Welcome to the video.
In this one I want to do a bit of a cleanup and then I'm going to give this project to you.
Okay.
So I think we can make a folder in a scripts folder and let's give it a name of a player.
And we're going to put these two into this folder.
All right.
Then let me check the animations.
And this is good, I like it.
And nothing else here.
Let's go to the scripts.
This player.
Animation events.
This is fine.
We can close it.
Player is fine.
We know it.
Start point is okay.
Finish point.
It's okay.
This one is fine as well, I think.
Checkpoints can be reactivated.
I think it's going to be really troublesome to go over each checkpoint manually, so probably it is
a good idea to make boolean in the game manager and then update each checkpoint according to the boolean
in the game manager.
It can be done maybe in two ways.
One of them is Game Manager would take all of the checkpoints and give them boolean, just like we did
with the fruits over here.
We we could collect all checkpoints and then each checkpoint would have true or false according to the
boolean we have on a game manager.
Or we can simply create a header.
Checkpoints.
And then over here I can do serialize field.
Private.
Actually, we need to have public here.
Public bool.
Can reactivate.
Simple as that.
And then on the checkpoint.
I'm going to open start method and in the start I'm going to do can be re-activated equals to game manager
dot instance.
Can reactivate.
Yeah, I think this is okay.
Yeah, let it be like that.
I think it's okay.
So that's all what I want to do.
I think this is fine.
Yeah, this is good.
That zone is okay.
This is good.
All right.
Now all checkpoints will be.
Following this boolean over here.
So if you want to reactivate checkpoint check this to true.
I will delete this extra banana.
I'll take the apple.
Place it here.
Cherry maybe here and banana over here okay.
And I'm going to wrap this project into archive and give it to you.
And I'll see you in the next section.