Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
What the heck does boy mean
It is a lie
It's actually in front of any function anytime you see the word void
It means there's a function here
Function again can be start
It can be an update function which happens all the time
Give me a custom function like checked checked boundaries
Hurt
All void means
Houses kind of weird
You need to start going to return anything
So I had a function called void
Calculator
Calculate equation
What if I wanted it to calculate an equation in return something
All we do is we actually call it
A
Note
Calculator
And all I would be is
Type return tent
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Fr10
5 f
Plus
5.1 f
Alternative it's going to return a float value
Psycho
Pier
In my update I could say
Put an update let's put it in the store
I could say
Calculate
Equation
So all this is going to do is calculate the equation
In the store
What am I going to see there so the way that we see this is we just simply say debug.log
NN calculate equation
It was just going to show us
What that value is
In the console
Honestly guys you don't need to worry about this too much
I got it mate I didn't really figure any of this stuff out until like 4 or 5 years that I started coding
Which is honestly embarrassing to admit but I never really needed it I got oh I get away with not
Return value
Again just to clarify
Void means nothing's return
Anytime you put an actual variable type here like a float or a bullying or a string
Some kind of variable type
As a function
I just simply means it's going to return that value
As part of the functions used right
But again guys
I don't think you're ever going to use a returned value
In any of the functions we write or if we do it's probably once or twice
So I don't worry too much about that
So you need an hour's boiler is just how you start a function
Just put void before every function at least for now
What's the remove this debug.log here
And also what I want to make sure you understand is
Probably a good idea too
Specify whether your functions are private
Or pub
Tesco Henry private here
And then private here as well
I'm just telling you this so that if you open up some scripts
I must say you download an asset or you're making your game
Can you see private
In front of function
Guys it's just like
Terrible
Functions behave in a very similar way
You have to tell unity
Whether the private or public mean
Only this function
Can be used inside the players
I can actually access this function
Inside
Have another script
Well the hurt function
Don't mind I actually be a great example of a function that should be
Because if an enemy touches the player
I actually might want to
Call
Fire the function hurt
In hurt the play
Only ever make something public
Do you have solution
It needs to be used
Across the game
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.