Hello guys.
Welcome to the video.
So we are in the end of this section.
I did show pretty much everything I wanted to show.
There is one behavior that might feel like a bug.
So I would like to explain, um, if we go to the game.
With two players.
Two players.
Normal.
Okay, so we are in the game and player joins the game one and two.
Here's the second one.
So the live system how it works now allows you not to respond but to die certain amount of times.
So that's like a bit the opposite from expectations that some people could have.
I just realized that in like yesterday.
So let's say we have two players in the game.
One of them died.
There is a second one and you can die one more time.
You can respawn as many times as you like, but you can die only twice.
So if there is still one player in the game and one more dies, you could finish the level.
Potentially this is fine, but if you are in the game with two players, one of you dies and the second
one dies before you respawn just now.
Then game will restart immediately.
It will not allow you to respawn again.
I took inspiration for this from the game that is called It Takes Two.
You probably know the game.
It's a game that you cannot play alone.
You always need two players.
It's called It Takes Two.
So in that game you actually can respawn as many times as you want.
But the game is different.
So here we have to put some limitations because otherwise it would be too easy.
So basically what I'm trying to say that in that game, if two players are dying, they have to restart
from a checkpoint.
That's what they have to do.
And in this case, I did kind of take a similar approach.
So yeah, it's not a bug, it's a feature.
But if you want to have a system where you would have to respawn the player as many times as lives you
have, then probably you would have to rework system just a bit.
Now there are a bunch of errors.
Um, I'm not sure what they are about as they do not interfere with the gameplay, so I don't see a
reason to worry about them on the skin selection UI.
I would like to do one change.
Over here in.
In update screen display.
I have two texts that I update and I do it in two different places.
So I want to place this line of code so it's a bit prettier.
Yeah, and that's it.
Also, there are these variables.
Over here.
With a current skin index.
Skin indexes and player index and current player index.
So now we know how the entire system works.
We don't have a reason to keep it exposed because we don't need to debug it.
We know how it works so we can just hide it.
It's okay.
We don't need to see it in the inspector, although if you want to see it in the inspector, just keep
it as it is.
It doesn't really matter.
It does not change much.
Okay.
When I do this as a private, I'm going to hide it in a.
And let's hide this one as well.
Okay, because we don't need to see those variables now in the inspector unless you really want to.
Then keep it exposed.
It's fine.
All right.
Now my inspector is a bit cleaner.
I know what the things do here.
And other than that, I did not see anything that came to my mind.
So I think it's okay if something comes up, I'll let you know as always.
Also, if someone will report something that have not been fixed, then I'll update video later on or
I will answer in Q&A with a bug fix.
Okay.
Bye bye.