1
00:00:05,600 --> 00:00:11,440
Make sure we have our win zone script on it. It needs the win zone game object right up here, right

2
00:00:13,760 --> 00:00:20,010
I'm gonna play

3
00:00:20,010 --> 00:00:22,010
There we go

4
00:00:22,490 --> 00:00:24,490
You won guys

5
00:00:24,490 --> 00:00:26,490
Wonderful job

6
00:00:27,210 --> 00:00:31,130
All right, so now we have a wind screen

7
00:00:33,530 --> 00:00:38,010
This is going to be handled by our score manager, right? This is where we keep track of it

8
00:00:38,090 --> 00:00:40,810
This is where we say game over in our debug log

9
00:00:41,530 --> 00:00:44,890
So then up here we need to do serialized field

10
00:00:45,610 --> 00:00:47,610
private game object

11
00:00:48,490 --> 00:00:53,770
Lose panel. We need to go back and fix the name on the other one. I like the name panel much more

12
00:00:54,650 --> 00:00:56,410
So then in here

13
00:00:56,410 --> 00:00:58,250
We're going to say

14
00:00:58,250 --> 00:01:03,690
lose panel dot set active they want us to do false, but we actually want to do true

15
00:01:05,290 --> 00:01:08,330
Good job guys, then we're going to save it. We're going to come back

16
00:01:09,290 --> 00:01:13,690
Remember the lose panel right there. Let's go fix our win thing real quick, right?

17
00:01:13,690 --> 00:01:15,930
We agree that using the name win panel

18
00:01:16,570 --> 00:01:19,770
Might be better than the name win zone. So let's fix that. Do you guys remember?

19
00:01:20,650 --> 00:01:22,650
We can double tap

20
00:01:23,050 --> 00:01:24,970
Ctrl R

21
00:01:24,970 --> 00:01:29,530
There we go. It makes it universally renameable and we decided that win

22
00:01:30,570 --> 00:01:32,570
panel

23
00:01:32,570 --> 00:01:36,250
Is a better name, right? It makes much more sense as a win panel

24
00:01:36,810 --> 00:01:39,370
Versus a win zone. You'll notice that when we rename it

25
00:01:39,930 --> 00:01:44,410
It loses the game object that we had in there. So now we just drag it back down

26
00:01:44,970 --> 00:01:46,970
And we're going to go ahead and hit ctrl S

27
00:01:48,170 --> 00:01:50,890
Wonderful job guys. So our score manager

28
00:01:51,530 --> 00:01:55,290
Has our lose condition on it, right? So that's where we have our lose panel

29
00:01:56,250 --> 00:01:58,250
And then our win zone

30
00:01:58,810 --> 00:02:02,090
Has the win panel on it. Let's go ahead. Let's try these things

31
00:02:04,260 --> 00:02:06,660
So we know that's our win. We've tested that. Let's

32
00:02:07,620 --> 00:02:09,620
Oh, we lost right off the bat

33
00:02:11,540 --> 00:02:17,220
Why did we lose right off the bat? Let's go double check that. I think I know what we did wrong and that's okay

34
00:02:19,660 --> 00:02:22,140
This would be in our score manager

35
00:02:22,940 --> 00:02:29,900
Greater than or equal to we want to be less than or equal to zero good catch guys. I'm glad you guys pointed it out

36
00:02:31,100 --> 00:02:34,710
So we're gonna hit play

37
00:02:34,710 --> 00:02:37,510
So we check our health is down to two

38
00:02:37,990 --> 00:02:39,990
one

39
00:02:42,460 --> 00:02:44,460
You lost oh

40
00:02:45,100 --> 00:02:48,380
Wonderful job guys again. I had escaped to get control of the mouse again

41
00:02:49,900 --> 00:02:51,900
That's it at that point

42
00:02:52,300 --> 00:02:56,860
I think we've done a wonderful job. We have a way to win the game. We have a way to lose the game

43
00:02:57,420 --> 00:03:01,100
We have coins to collect. We have all kinds of different options in here