All language subtitles for lesson080

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

So it's still a quick review

Just to make sure

That all of the little things

That we learnt about

Including variables

Functions

Simple scripting syntax

How we setup this very simple player moving

What's review how all that works together

So game let it play and just make sure we know what's going on here

I can move the player

Left and right

Up down

And I can stop

Player

When he

Touches the egg

The Fray

I'm also getting hurt

Every 2 seconds

Were using the recovery counter

Can I have various variables

Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1

Cod player name that a string have a health variable that is an integer

I have a dead very well which is a bullying which is true or false which is this checkbox here

Rsp multiplier with Jack

Change

At runtime if I want go really fast

Really slow

How to have a main camera that's currently positioned 8:00

And a z value of -10

And I can shift

I want

Again

When you exit play mode

Everything Snaps back in the place all of the changes you made in play mode

Don't actually say

Search run through the Script

Vanilla the Script is attached to game objects that tell you use scripts you were touching the game object

You do that as you drag a script

From your project

Panel

Drag it to

You are

If we had drunk the player to the main camera

Actually going to shift the camera around we don't want that

So we're going to remove the

And your player script in double check and make sure everything makes sense

A review

How old is John Kapoor anytime you see the word using before your actual script

That's just simple

Packages that are included with the Script

Tell those happened to be put into the Script

By default whenever you create a new script

Megane diesel is called namespaces

It allows us to actually write certain variables use the update function you start function

IRA movies

You'll see everything breaks the update function the start function are now yellow

Because it thinks that these are custom scripts

These are custom scripts practise 3 should be a variable that we've created it's wondering what is this

So when we actually include a namespace well

Everything

Queen's open where ok we can actually use a lot of stuff in here

Out of the box

This right here is the class called player

And it's extending

To a mana behaviour which is

Again tomorrow behaviour is basically something

Out of the box that has all these kinds of things that you need can use and then include input

That includes time that delta time

Also to call staff

That are available to us because we're using a monitor behaviour

Don't worry too much about any of this stuff guys because honestly

Unity just put it together for you

Inside of a script by default

So I don't worry about that

I just remember guys

If you decide a change

Class name What's it wanted to call this new player or something like that and saved

Well you need is going to get confused

The reason why is because I'm going to say well

That script doesn't actually exist

I can see that it's

Not even appearing the associated script cannot be loaded

The reason why is because we need actually rename the file

New player

So just be sure your class name

Again it's always going to appear right below your name spaces

Show your class name is the same as your script name because

Scripts and classes

Are pretty much the same thing

In unity

Serena call this player

Ok

Before

The start function happens which the start function is the very first thing that unity will do with this

The moment

Play before you even write that function and what it does

Do you want to have all of your variables or had a good word is properties

Declared or born

To all of these are declared

Before we even

Get the start button or the play button in unity

So we have a speed multiplier which is a float that can be one pt100 it can be 3.15 a can

2.3 can be 1 million 55-36 75149

Not an integer and integer is a whole number 12345 up to

A billion trillian right

Lot of bullying which is either true or false

Can use this with variables like dead

You can also use something called strings

Include

Basically words

Or names

Or level titles or game names etc

Basically just a word always put it inside of

What's

Then

Supportive remember that there's private variables and public variables

Public variables can be accessed by any script on the planet natural

Play said by any script inside of your game but say that way ok

Private variables on the other hand can only be accessed inside of this script

And the Script is called player

General Thomas every variable in your game should be private unless you absolutely need

Use it by another script

So dead

Might actually be better served as a public variable

Because

Hey maybe

Anime

Wants to change this variable to script enemy that C Sharp

Maybe I want to set to true

Or the player who knows

We're going to keep it private

Until we absolutely know for sure we need it

Now

Serializefield is only ever really use

In front of a private variable because

If it's private

Not even the unity editor can see it so you'll notice that my speed multiplier is now gone

So if you ever want to change a value inside of the unity editor and not actually type it out here

You want to set it to be serialised

Right here

To all of these very bored are serialised

And you'll see me you serializefield pretty much of the time because I like to see them

In the unity editor in the inspector tab

Again

Once these are born

And we hit the play button

We actually do stuff with them

And you can either do that in the start function which is once

An only once

When you hit the play button

The moment the scene is loaded

Or you can use those variables inside of the update function

The update function is where all the magic happens

You'll be reading all in your code inside of the update function

Function is read like a book

Over and over and over again remember

Think of Unity has a speed reader in it reading the update function

Super duper fast

Remember guys

You can actually use functions

Custom functions

Inside of the update function

Like this

Remember you can change a tonne of aspects

Of your game object

Using the transformer

Are you

So we can actually change the scale if you wanted to Transformed

Scale

Equals

New vector 3 new shift it automatically a local scale

Because you need a licence to use a local scale and not just regular scale

We also change the scale which is going to be

Local scale

I just the way you need me likes to write about

Wigan shift at to be let's say

New vector3

.5 f 1

F2f

Change the scale you can change the rotation as well

Is a latte different ways to shift

The transformed values

Object and you can see

Which ones are available to change by just going to the trains forum

Temperature here

Can you see me in a position rotation in a scale value that can be adjusted with the

Finally guys

Just remember that you can use functions

Inside of functions

Inside a functions

The heart function

Is down here

It's used instead of a check boundaries function which is used inside of the update function

And that is an overview of all the things we've learnt

Important to remember

Conditions

Cleanly noted

You should be using

Double slash here

To create the screen text which is just commenting out

It's going to help you know where all of your conditions are 4 and you can even comment your functions as well

So we can just write check the boundaries

And stop the player

Search kitchen note things using your

Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1

Or slashes

Yourself

You're saying

And also for your team if you're working with one

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