All language subtitles for lesson080

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
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:11,264 So it's still a quick review 2 00:00:11,520 --> 00:00:12,800 Just to make sure 3 00:00:13,056 --> 00:00:15,104 That all of the little things 4 00:00:15,360 --> 00:00:16,896 That we learnt about 5 00:00:17,408 --> 00:00:18,688 Including variables 6 00:00:18,944 --> 00:00:19,712 Functions 7 00:00:20,224 --> 00:00:22,528 Simple scripting syntax 8 00:00:22,784 --> 00:00:25,856 How we setup this very simple player moving 9 00:00:26,368 --> 00:00:28,928 What's review how all that works together 10 00:00:29,440 --> 00:00:32,512 So game let it play and just make sure we know what's going on here 11 00:00:33,280 --> 00:00:34,816 I can move the player 12 00:00:37,376 --> 00:00:38,400 Left and right 13 00:00:38,656 --> 00:00:39,680 Up down 14 00:00:41,728 --> 00:00:43,520 And I can stop 15 00:00:44,032 --> 00:00:44,544 Player 16 00:00:45,824 --> 00:00:46,592 When he 17 00:00:46,848 --> 00:00:48,128 Touches the egg 18 00:00:49,664 --> 00:00:50,176 The Fray 19 00:00:50,944 --> 00:00:52,224 I'm also getting hurt 20 00:00:52,736 --> 00:00:54,272 Every 2 seconds 21 00:00:55,040 --> 00:00:56,576 Were using the recovery counter 22 00:00:57,344 --> 00:00:59,392 Can I have various variables 23 00:01:00,123 --> 00:01:02,491 Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1 24 00:01:02,492 --> 00:01:05,024 Cod player name that a string have a health variable that is an integer 25 00:01:05,280 --> 00:01:10,144 I have a dead very well which is a bullying which is true or false which is this checkbox here 26 00:01:10,912 --> 00:01:12,448 Rsp multiplier with Jack 27 00:01:12,704 --> 00:01:13,472 Change 28 00:01:13,984 --> 00:01:16,544 At runtime if I want go really fast 29 00:01:17,824 --> 00:01:19,104 Really slow 30 00:01:20,640 --> 00:01:24,224 How to have a main camera that's currently positioned 8:00 31 00:01:24,736 --> 00:01:27,040 And a z value of -10 32 00:01:27,552 --> 00:01:28,832 And I can shift 33 00:01:29,344 --> 00:01:30,112 I want 34 00:01:32,928 --> 00:01:33,440 Again 35 00:01:33,952 --> 00:01:35,744 When you exit play mode 36 00:01:36,256 --> 00:01:39,840 Everything Snaps back in the place all of the changes you made in play mode 37 00:01:40,352 --> 00:01:41,120 Don't actually say 38 00:01:42,656 --> 00:01:43,936 Search run through the Script 39 00:01:44,960 --> 00:01:50,592 Vanilla the Script is attached to game objects that tell you use scripts you were touching the game object 40 00:01:51,104 --> 00:01:53,152 You do that as you drag a script 41 00:01:53,408 --> 00:01:54,432 From your project 42 00:01:54,688 --> 00:01:55,200 Panel 43 00:01:55,712 --> 00:01:56,992 Drag it to 44 00:01:58,016 --> 00:01:58,528 You are 45 00:01:59,808 --> 00:02:02,624 If we had drunk the player to the main camera 46 00:02:03,136 --> 00:02:06,464 Actually going to shift the camera around we don't want that 47 00:02:06,976 --> 00:02:08,512 So we're going to remove the 48 00:02:10,816 --> 00:02:13,888 And your player script in double check and make sure everything makes sense 49 00:02:14,400 --> 00:02:15,424 A review 50 00:02:15,936 --> 00:02:20,544 How old is John Kapoor anytime you see the word using before your actual script 51 00:02:21,312 --> 00:02:22,848 That's just simple 52 00:02:23,104 --> 00:02:25,664 Packages that are included with the Script 53 00:02:26,176 --> 00:02:29,760 Tell those happened to be put into the Script 54 00:02:30,272 --> 00:02:32,320 By default whenever you create a new script 55 00:02:32,832 --> 00:02:34,880 Megane diesel is called namespaces 56 00:02:35,136 --> 00:02:40,512 It allows us to actually write certain variables use the update function you start function 57 00:02:40,768 --> 00:02:42,048 IRA movies 58 00:02:42,304 --> 00:02:47,936 You'll see everything breaks the update function the start function are now yellow 59 00:02:48,448 --> 00:02:50,752 Because it thinks that these are custom scripts 60 00:02:51,008 --> 00:02:57,152 These are custom scripts practise 3 should be a variable that we've created it's wondering what is this 61 00:02:57,408 --> 00:03:00,736 So when we actually include a namespace well 62 00:03:00,992 --> 00:03:01,760 Everything 63 00:03:02,016 --> 00:03:05,088 Queen's open where ok we can actually use a lot of stuff in here 64 00:03:05,600 --> 00:03:06,368 Out of the box 65 00:03:08,160 --> 00:03:11,232 This right here is the class called player 66 00:03:12,000 --> 00:03:13,792 And it's extending 67 00:03:14,048 --> 00:03:15,584 To a mana behaviour which is 68 00:03:16,096 --> 00:03:18,144 Again tomorrow behaviour is basically something 69 00:03:18,400 --> 00:03:24,032 Out of the box that has all these kinds of things that you need can use and then include input 70 00:03:24,288 --> 00:03:26,336 That includes time that delta time 71 00:03:26,848 --> 00:03:28,128 Also to call staff 72 00:03:28,384 --> 00:03:31,456 That are available to us because we're using a monitor behaviour 73 00:03:31,968 --> 00:03:35,296 Don't worry too much about any of this stuff guys because honestly 74 00:03:35,552 --> 00:03:37,344 Unity just put it together for you 75 00:03:37,600 --> 00:03:39,904 Inside of a script by default 76 00:03:40,160 --> 00:03:41,440 So I don't worry about that 77 00:03:41,696 --> 00:03:42,720 I just remember guys 78 00:03:42,976 --> 00:03:44,256 If you decide a change 79 00:03:44,768 --> 00:03:49,376 Class name What's it wanted to call this new player or something like that and saved 80 00:03:49,888 --> 00:03:51,680 Well you need is going to get confused 81 00:03:52,704 --> 00:03:54,752 The reason why is because I'm going to say well 82 00:03:55,520 --> 00:03:57,568 That script doesn't actually exist 83 00:03:58,336 --> 00:03:59,360 I can see that it's 84 00:03:59,616 --> 00:04:02,432 Not even appearing the associated script cannot be loaded 85 00:04:02,944 --> 00:04:06,272 The reason why is because we need actually rename the file 86 00:04:06,784 --> 00:04:07,552 New player 87 00:04:08,576 --> 00:04:10,368 So just be sure your class name 88 00:04:10,880 --> 00:04:14,208 Again it's always going to appear right below your name spaces 89 00:04:14,976 --> 00:04:18,815 Show your class name is the same as your script name because 90 00:04:19,071 --> 00:04:20,351 Scripts and classes 91 00:04:20,607 --> 00:04:22,143 Are pretty much the same thing 92 00:04:22,399 --> 00:04:23,167 In unity 93 00:04:23,679 --> 00:04:25,983 Serena call this player 94 00:04:26,751 --> 00:04:27,263 Ok 95 00:04:27,775 --> 00:04:28,543 Before 96 00:04:28,799 --> 00:04:34,175 The start function happens which the start function is the very first thing that unity will do with this 97 00:04:34,943 --> 00:04:35,967 The moment 98 00:04:36,223 --> 00:04:40,063 Play before you even write that function and what it does 99 00:04:41,087 --> 00:04:45,695 Do you want to have all of your variables or had a good word is properties 100 00:04:46,463 --> 00:04:48,511 Declared or born 101 00:04:49,023 --> 00:04:50,815 To all of these are declared 102 00:04:51,583 --> 00:04:52,863 Before we even 103 00:04:53,375 --> 00:04:56,191 Get the start button or the play button in unity 104 00:04:56,959 --> 00:05:03,103 So we have a speed multiplier which is a float that can be one pt100 it can be 3.15 a can 105 00:05:03,359 --> 00:05:09,503 2.3 can be 1 million 55-36 75149 106 00:05:09,759 --> 00:05:15,391 Not an integer and integer is a whole number 12345 up to 107 00:05:15,647 --> 00:05:17,183 A billion trillian right 108 00:05:18,463 --> 00:05:21,791 Lot of bullying which is either true or false 109 00:05:22,303 --> 00:05:24,351 Can use this with variables like dead 110 00:05:25,887 --> 00:05:28,447 You can also use something called strings 111 00:05:28,703 --> 00:05:30,239 Include 112 00:05:30,751 --> 00:05:32,031 Basically words 113 00:05:32,287 --> 00:05:33,311 Or names 114 00:05:33,567 --> 00:05:36,639 Or level titles or game names etc 115 00:05:37,663 --> 00:05:40,479 Basically just a word always put it inside of 116 00:05:40,991 --> 00:05:41,503 What's 117 00:05:42,271 --> 00:05:43,039 Then 118 00:05:43,807 --> 00:05:47,903 Supportive remember that there's private variables and public variables 119 00:05:48,159 --> 00:05:54,303 Public variables can be accessed by any script on the planet natural 120 00:05:54,559 --> 00:05:58,143 Play said by any script inside of your game but say that way ok 121 00:05:58,399 --> 00:06:03,263 Private variables on the other hand can only be accessed inside of this script 122 00:06:03,519 --> 00:06:05,055 And the Script is called player 123 00:06:06,591 --> 00:06:12,735 General Thomas every variable in your game should be private unless you absolutely need 124 00:06:12,991 --> 00:06:14,527 Use it by another script 125 00:06:15,295 --> 00:06:16,063 So dead 126 00:06:16,319 --> 00:06:19,391 Might actually be better served as a public variable 127 00:06:21,183 --> 00:06:21,951 Because 128 00:06:22,463 --> 00:06:23,231 Hey maybe 129 00:06:23,487 --> 00:06:23,999 Anime 130 00:06:24,767 --> 00:06:29,375 Wants to change this variable to script enemy that C Sharp 131 00:06:29,887 --> 00:06:31,679 Maybe I want to set to true 132 00:06:32,447 --> 00:06:33,983 Or the player who knows 133 00:06:34,239 --> 00:06:35,775 We're going to keep it private 134 00:06:36,031 --> 00:06:38,079 Until we absolutely know for sure we need it 135 00:06:39,103 --> 00:06:39,615 Now 136 00:06:39,871 --> 00:06:42,943 Serializefield is only ever really use 137 00:06:43,199 --> 00:06:46,015 In front of a private variable because 138 00:06:46,271 --> 00:06:47,551 If it's private 139 00:06:49,087 --> 00:06:54,719 Not even the unity editor can see it so you'll notice that my speed multiplier is now gone 140 00:06:55,743 --> 00:07:01,887 So if you ever want to change a value inside of the unity editor and not actually type it out here 141 00:07:03,679 --> 00:07:05,983 You want to set it to be serialised 142 00:07:06,239 --> 00:07:07,007 Right here 143 00:07:07,775 --> 00:07:11,103 To all of these very bored are serialised 144 00:07:11,871 --> 00:07:16,223 And you'll see me you serializefield pretty much of the time because I like to see them 145 00:07:16,479 --> 00:07:18,783 In the unity editor in the inspector tab 146 00:07:20,319 --> 00:07:21,087 Again 147 00:07:21,599 --> 00:07:23,135 Once these are born 148 00:07:23,647 --> 00:07:25,183 And we hit the play button 149 00:07:25,951 --> 00:07:27,231 We actually do stuff with them 150 00:07:27,743 --> 00:07:31,327 And you can either do that in the start function which is once 151 00:07:31,583 --> 00:07:32,863 An only once 152 00:07:33,119 --> 00:07:34,143 When you hit the play button 153 00:07:34,399 --> 00:07:35,935 The moment the scene is loaded 154 00:07:36,703 --> 00:07:40,287 Or you can use those variables inside of the update function 155 00:07:40,799 --> 00:07:43,359 The update function is where all the magic happens 156 00:07:43,615 --> 00:07:46,687 You'll be reading all in your code inside of the update function 157 00:07:47,199 --> 00:07:49,247 Function is read like a book 158 00:07:49,759 --> 00:07:52,319 Over and over and over again remember 159 00:07:52,575 --> 00:07:57,183 Think of Unity has a speed reader in it reading the update function 160 00:07:57,439 --> 00:07:58,719 Super duper fast 161 00:07:59,487 --> 00:08:00,767 Remember guys 162 00:08:01,535 --> 00:08:03,327 You can actually use functions 163 00:08:04,095 --> 00:08:05,119 Custom functions 164 00:08:06,399 --> 00:08:08,191 Inside of the update function 165 00:08:09,215 --> 00:08:09,983 Like this 166 00:08:10,751 --> 00:08:13,567 Remember you can change a tonne of aspects 167 00:08:13,823 --> 00:08:15,103 Of your game object 168 00:08:15,615 --> 00:08:17,407 Using the transformer 169 00:08:18,175 --> 00:08:18,943 Are you 170 00:08:19,199 --> 00:08:22,527 So we can actually change the scale if you wanted to Transformed 171 00:08:22,783 --> 00:08:23,551 Scale 172 00:08:23,807 --> 00:08:24,319 Equals 173 00:08:24,831 --> 00:08:28,927 New vector 3 new shift it automatically a local scale 174 00:08:29,439 --> 00:08:33,279 Because you need a licence to use a local scale and not just regular scale 175 00:08:33,535 --> 00:08:35,839 We also change the scale which is going to be 176 00:08:36,095 --> 00:08:36,863 Local scale 177 00:08:37,375 --> 00:08:39,935 I just the way you need me likes to write about 178 00:08:40,447 --> 00:08:43,263 Wigan shift at to be let's say 179 00:08:43,519 --> 00:08:45,311 New vector3 180 00:08:45,823 --> 00:08:48,127 .5 f 1 181 00:08:48,639 --> 00:08:50,175 F2f 182 00:08:50,943 --> 00:08:54,527 Change the scale you can change the rotation as well 183 00:08:55,807 --> 00:08:58,111 Is a latte different ways to shift 184 00:08:58,367 --> 00:08:59,647 The transformed values 185 00:09:00,159 --> 00:09:01,951 Object and you can see 186 00:09:02,463 --> 00:09:05,791 Which ones are available to change by just going to the trains forum 187 00:09:06,047 --> 00:09:07,071 Temperature here 188 00:09:07,583 --> 00:09:11,935 Can you see me in a position rotation in a scale value that can be adjusted with the 189 00:09:13,215 --> 00:09:14,239 Finally guys 190 00:09:14,751 --> 00:09:16,543 Just remember that you can use functions 191 00:09:16,799 --> 00:09:18,079 Inside of functions 192 00:09:18,335 --> 00:09:19,615 Inside a functions 193 00:09:20,127 --> 00:09:21,151 The heart function 194 00:09:21,919 --> 00:09:22,687 Is down here 195 00:09:24,735 --> 00:09:29,087 It's used instead of a check boundaries function which is used inside of the update function 196 00:09:29,599 --> 00:09:32,415 And that is an overview of all the things we've learnt 197 00:09:32,927 --> 00:09:34,207 Important to remember 198 00:09:34,463 --> 00:09:35,743 Conditions 199 00:09:36,767 --> 00:09:38,303 Cleanly noted 200 00:09:38,815 --> 00:09:39,839 You should be using 201 00:09:40,095 --> 00:09:41,887 Double slash here 202 00:09:43,167 --> 00:09:46,239 To create the screen text which is just commenting out 203 00:09:46,495 --> 00:09:52,639 It's going to help you know where all of your conditions are 4 and you can even comment your functions as well 204 00:09:52,895 --> 00:09:55,455 So we can just write check the boundaries 205 00:09:55,711 --> 00:09:56,991 And stop the player 206 00:09:58,015 --> 00:10:00,588 Search kitchen note things using your 207 00:10:00,589 --> 00:10:02,889 Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1 208 00:10:02,889 --> 00:10:02,367 Or slashes 209 00:10:03,647 --> 00:10:04,159 Yourself 210 00:10:04,415 --> 00:10:05,183 You're saying 211 00:10:05,695 --> 00:10:11,839 And also for your team if you're working with one 15126

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.