Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,656 --> 00:00:12,800
Now believe it or not guys the
2
00:00:13,056 --> 00:00:15,872
The audio triggers
3
00:00:16,384 --> 00:00:22,528
The audio trigger class it actually allows us to control whether a title
4
00:00:22,784 --> 00:00:28,928
Cures for this level so we wanted to have the name of this level which I'm gonna call Skyline City if you want
5
00:00:29,184 --> 00:00:35,328
To appear we can actually just use this audio trigger script and I'll show it to you in a sec we could use
6
00:00:35,584 --> 00:00:37,120
Actually make it appear
7
00:00:37,376 --> 00:00:40,448
Just jump into the audio trigger script and also you have AIDS
8
00:00:40,704 --> 00:00:41,984
I'm actually a curry
9
00:00:43,008 --> 00:00:44,288
You can see here
10
00:00:45,312 --> 00:00:51,456
I'm for you guys it was probably commented out in the previous video going to delete
11
00:00:53,248 --> 00:00:59,392
And basically was going to say something like the UI animator
12
00:00:59,648 --> 00:01:00,909
Inside the game manager
13
00:01:00,911 --> 00:01:04,411
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
14
00:01:04,412 --> 00:01:06,560
Should set the
15
00:01:06,816 --> 00:01:10,400
Animator Trigger 2
16
00:01:10,656 --> 00:01:12,192
Show tidal
17
00:01:13,216 --> 00:01:17,568
Something like that ok so the moment the player triggers
18
00:01:17,824 --> 00:01:19,616
With
19
00:01:19,872 --> 00:01:21,152
The box Collider
20
00:01:21,664 --> 00:01:23,968
8 controls title is set to true
21
00:01:24,480 --> 00:01:25,248
Then
22
00:01:26,528 --> 00:01:28,832
We're going to set the trigger to show title
23
00:01:29,344 --> 00:01:30,112
Ok
24
00:01:30,368 --> 00:01:34,720
So it's going to be written some like this game manager
25
00:01:34,976 --> 00:01:36,256
The Instance
26
00:01:36,768 --> 00:01:37,536
That
27
00:01:37,792 --> 00:01:42,656
UI animator and we don't have a variable called that yes we need to create one
28
00:01:43,680 --> 00:01:45,216
Set Trigger
29
00:01:47,008 --> 00:01:48,032
Show tail
30
00:01:49,568 --> 00:01:51,104
Something like that ok
31
00:01:52,128 --> 00:01:55,200
United States got a red zig zag underneath a
32
00:01:55,968 --> 00:02:01,344
UI animator does so the reason why is because we need to go into the game manager script
33
00:02:01,600 --> 00:02:04,416
I just make sure we create a new Public Enemy
34
00:02:06,976 --> 00:02:09,280
Where to call this new i n a m
35
00:02:14,912 --> 00:02:17,472
I can see that you are in a mirror is no longer
36
00:02:17,728 --> 00:02:18,752
Getting there
37
00:02:19,008 --> 00:02:20,544
Sophie go into unity now
38
00:02:21,056 --> 00:02:23,360
If you got a game manager we now have this
39
00:02:23,872 --> 00:02:26,688
Daiba here called UI animator
40
00:02:27,456 --> 00:02:31,808
So we don't actually have an animator on are you I currently
41
00:02:32,832 --> 00:02:34,880
We can go ahead and create one
42
00:02:36,160 --> 00:02:38,208
Just cooking create animation
43
00:02:38,976 --> 00:02:40,768
Are we going to create a new animation
44
00:02:42,048 --> 00:02:43,328
In a new folder
45
00:02:44,096 --> 00:02:45,888
Recall this folder UI
46
00:02:47,936 --> 00:02:50,240
Where to call this see here
47
00:02:50,752 --> 00:02:51,776
UI
48
00:02:53,056 --> 00:02:55,104
Title fade in
49
00:02:56,384 --> 00:02:57,664
Take that out
50
00:02:58,432 --> 00:03:00,992
Duchess go ahead in copy this coins
51
00:03:01,248 --> 00:03:02,528
You are here
52
00:03:03,552 --> 00:03:06,112
And we're going to paste it here I'm going to call this
53
00:03:06,368 --> 00:03:06,880
Tidal
54
00:03:07,392 --> 00:03:08,672
It was double click on it
55
00:03:09,440 --> 00:03:10,720
Alright so there it is
56
00:03:12,512 --> 00:03:14,816
It is drag this title the centre here
57
00:03:16,096 --> 00:03:18,912
And make sure we set the alignment to Centre
58
00:03:19,680 --> 00:03:22,496
Always centres up inside of the canvas
59
00:03:22,752 --> 00:03:24,544
No matter what the screen size is
60
00:03:25,312 --> 00:03:27,872
And also just wondering the alignment
61
00:03:28,896 --> 00:03:30,944
A paragraph to be centred
62
00:03:31,712 --> 00:03:33,248
Anime call this
63
00:03:33,504 --> 00:03:34,528
Skyline
64
00:03:34,784 --> 00:03:35,552
City
65
00:03:36,064 --> 00:03:36,576
Ok
66
00:03:37,600 --> 00:03:41,696
Message make sure I really precise without positions
67
00:03:41,952 --> 00:03:43,744
Any accidents 0 in the Y
68
00:03:45,536 --> 00:03:47,584
Alright my sure guys
69
00:03:47,840 --> 00:03:52,704
Make sure if you're working outside of a prefab where is hell we were working
70
00:03:52,960 --> 00:03:58,592
I'm outside the actual game manager prefab and we added this title in YouTuber so plus I can't hear
71
00:03:59,104 --> 00:04:00,640
It's also
72
00:04:00,896 --> 00:04:07,040
The actual colour of the text here is none blue so that means that this is an additional prefab that's not part of the
73
00:04:07,296 --> 00:04:08,320
Prefab
74
00:04:08,832 --> 00:04:12,416
But we want the title to be part of the game in your prefab so that just go to
75
00:04:12,928 --> 00:04:13,952
Reply all
76
00:04:14,720 --> 00:04:20,863
Ok so now we have this information window if you say
77
00:04:21,119 --> 00:04:25,727
UI we have is animation window because it now has the animator attached to it
78
00:04:25,983 --> 00:04:28,543
So we need to do is just click record
79
00:04:29,055 --> 00:04:34,687
Believe it or not guys if something's a child of an animator component so in this case the tile
80
00:04:35,199 --> 00:04:37,247
Actually anime the title
81
00:04:38,015 --> 00:04:40,831
As part of the EU eyes in animator
82
00:04:41,087 --> 00:04:43,391
Tony's case we're going to set the colour
83
00:04:44,159 --> 00:04:45,183
0
84
00:04:45,695 --> 00:04:48,255
Images copy this key from here
85
00:04:48,767 --> 00:04:50,303
Go to about one second
86
00:04:50,815 --> 00:04:52,351
And then fade in
87
00:04:52,863 --> 00:04:55,935
So just go up to for a pass it here
88
00:04:56,959 --> 00:04:58,239
MN
89
00:05:00,031 --> 00:05:03,103
We're going to hold that for a second and then fade Out
90
00:05:03,871 --> 00:05:05,151
4 seconds
91
00:05:05,663 --> 00:05:07,455
Something like this
92
00:05:11,295 --> 00:05:12,575
Obviously guys
93
00:05:13,087 --> 00:05:18,463
You can do this with code and I think most developers out there would probably by the fault
94
00:05:18,719 --> 00:05:19,999
Do this with code
95
00:05:20,255 --> 00:05:21,535
But I found that
96
00:05:21,791 --> 00:05:27,935
If you want to get things done quickly and also have a lot of control over how something looks using the animation window is
97
00:05:28,191 --> 00:05:34,335
Best bet and guys we can add sound effects to this wanted by just adding animated function script like we've been
98
00:05:34,591 --> 00:05:40,735
For the player in the enemies as well so we can add particles we can add sound effects screen Shake
99
00:05:40,991 --> 00:05:45,087
Everyone into you to make this title really pop for now
100
00:05:45,599 --> 00:05:46,623
It is going to fade in
101
00:05:47,391 --> 00:05:47,903
Ok
102
00:05:48,927 --> 00:05:53,023
Just yet now I need to go to where I am
103
00:05:54,559 --> 00:05:55,583
Three here
104
00:05:56,607 --> 00:05:57,375
And
105
00:05:57,631 --> 00:06:02,239
Make sure you are selected in your notice that by default gonna start playing the title
106
00:06:02,751 --> 00:06:05,567
We don't want that so let's go ahead and create new empty state
107
00:06:06,847 --> 00:06:07,871
We're going to call this
108
00:06:08,383 --> 00:06:09,151
Empty
109
00:06:11,199 --> 00:06:13,247
This is going to be our default state
110
00:06:13,503 --> 00:06:15,039
Are we going to make transition
111
00:06:15,551 --> 00:06:18,367
And then we're going to create another train station so it's gonna go
112
00:06:18,623 --> 00:06:20,159
To the fighting
113
00:06:20,415 --> 00:06:23,487
If there is a certain parameter what is the perimeter well
114
00:06:23,743 --> 00:06:25,023
It's the trigger
115
00:06:26,047 --> 00:06:28,351
Show title in a sinner scripture
116
00:06:28,863 --> 00:06:32,703
Game manager that instance that you are a animator set Trigger
117
00:06:33,215 --> 00:06:36,287
Show title that condition
118
00:06:36,543 --> 00:06:38,079
Socio tidal
119
00:06:38,591 --> 00:06:41,919
We don't want some exit time we want to immediately show the title
120
00:06:42,431 --> 00:06:45,247
Transition duration
121
00:06:46,271 --> 00:06:49,343
Now going from the actual fighting
122
00:06:49,599 --> 00:06:51,647
Empty after it's done
123
00:06:51,903 --> 00:06:53,695
We do want an exit time of 1
124
00:06:54,207 --> 00:06:55,999
And we don't want to transition
125
00:06:56,255 --> 00:06:56,767
Ok
126
00:06:57,279 --> 00:07:03,423
I just make sure that it's not gonna loop so let's turn off the loop we don't want the title to fade in over and over
127
00:07:05,983 --> 00:07:06,751
Alright
128
00:07:07,519 --> 00:07:09,567
There's just one more thing we need to do here guys
129
00:07:10,335 --> 00:07:12,639
If we go to our game manager here
130
00:07:13,151 --> 00:07:17,247
We need to make sure we're selling are you I am so I'm going to drag rui
131
00:07:18,527 --> 00:07:22,367
Into the UI animator is going to automatically find that in a metre
132
00:07:23,135 --> 00:07:27,743
If we hit play nothing's going to happen and the reason why it's because we need to go to
133
00:07:27,999 --> 00:07:34,143
One of our game objects that actually uses the audio trick her class so we can do a song
134
00:07:34,399 --> 00:07:36,959
Music or we can go to the end sound of one or two
135
00:07:37,471 --> 00:07:40,031
And the reason guys I've linked the title
136
00:07:40,287 --> 00:07:44,895
The ability to control the titles and M to the audio Trigger
137
00:07:45,151 --> 00:07:51,295
Is simply because in my games whenever you enter a new zone it's always going to start playing music
138
00:07:51,551 --> 00:07:57,695
Show the title so that's just how I like to do it but if you guys want to separate out the two you can certainly create a title
139
00:07:57,951 --> 00:08:02,303
Yoga class if you wanted to or you know keep it inside of the audio Trigger
140
00:08:02,559 --> 00:08:07,167
In my case I wanted to start playing the moment the music starts playing as well ok
141
00:08:07,935 --> 00:08:09,983
So we're just going to turn on controls title
142
00:08:12,543 --> 00:08:14,079
And then also
143
00:08:14,335 --> 00:08:16,895
We have a box Collider here
144
00:08:17,151 --> 00:08:22,015
Will we actually go to a script you'll see that the UI animators trigger is controlled
145
00:08:22,271 --> 00:08:28,415
Only within our ontriggerstay function here so we need a box Collider to exist
146
00:08:28,671 --> 00:08:29,695
We need it enabled
147
00:08:29,951 --> 00:08:31,743
Songs by head enable it
148
00:08:32,255 --> 00:08:34,303
United States
149
00:08:36,607 --> 00:08:40,447
Not very wide here knows the green here is not very wide
150
00:08:40,703 --> 00:08:41,727
So just make it
151
00:08:42,751 --> 00:08:45,567
Provide to the moment the player starts playing a level
152
00:08:47,103 --> 00:08:48,383
The title appears
153
00:08:48,639 --> 00:08:49,919
Save this in here
154
00:08:50,175 --> 00:08:52,735
And also just be sure our prefabs are all
155
00:08:52,991 --> 00:08:55,295
Apply all to the game manager
156
00:08:56,063 --> 00:08:58,111
Prefab and then Hitler
157
00:09:02,975 --> 00:09:05,279
The nationalist that the title appears
158
00:09:06,303 --> 00:09:10,655
It looks like we have a little bit of a great year but overall that's pretty good
159
00:09:10,911 --> 00:09:14,751
Looks like it's going back to an opacity of 100%
160
00:09:15,263 --> 00:09:18,847
Why is that that because at the
161
00:09:19,615 --> 00:09:22,943
Empty state here it's going back to its default
162
00:09:23,455 --> 00:09:24,479
Alpha value
163
00:09:24,735 --> 00:09:30,879
Sophie go to a title here what's its default out of value it's actually 100% so I was dragging down to 0
164
00:09:31,135 --> 00:09:33,439
By default and then Hitler
165
00:09:39,327 --> 00:09:40,351
Alright perfect
166
00:09:43,935 --> 00:09:48,287
Now to ensure that the player can't go back into the trigger
167
00:09:48,543 --> 00:09:51,871
And start the tidal again
168
00:09:52,383 --> 00:09:54,431
Are we going to do is just simply say
169
00:09:54,943 --> 00:09:55,711
Controls
170
00:09:55,967 --> 00:09:57,503
Title equals
171
00:09:57,759 --> 00:09:58,527
Boss
172
00:09:59,551 --> 00:10:04,415
That way they can trigger it again and again if the exit and re-enter the trigger zone
12926
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.