Learn to Program with C# - STATIC TYPES - Intermediate Unity Tutorial

preview_player
Показать описание

🔥 *FREE Goodies* 🔥

🌐 *Connect with Us* 🌐

Рекомендации по теме
Комментарии
Автор

In layman's terms about the instance vs class part:
If you have 10 enemies and they all use the same health script, normally every enemy can have diff amount of health left.
But if it's static then your enemies will all have the same amount of health left, always. Because it's now tied to class (the script) instead of individual instances.

BenightedAlizar
Автор

Clearer than my Udemy course LOL Thank you Jonathan!

gernet
Автор

thank you much, i wish all youtube tutorials were as quick and easy as this one ....

MustafaAAli-uvsx
Автор

You could use static classes for a save manager. It doesn't require MonoBehaviour, because it's just more methods, but allows everything to access it.

bencebence
Автор

Exactly the turtorials I was looking for :D Helps a lot

sebf
Автор

So a static thing is something that there can only be one of? One level handler class, one properties class per game object? Something you can call to directly as you know there will only be one of. And that is a much better alternative to having a level handler gameobject with a level handler component that has to be called through the object every time?

christophermorley
Автор

hi, to resume?? so the bad example woulb be the use for variables? because they can not destroy, as statics...they consume memory, bad idea to use it as variables...?

leatherandpoemscharmyman
Автор

What about when dealing with coroutines that you want to call from, let's say, a prefab script?

darkman
Автор

Why were your videos deleted on unity sites?

bilqinm
Автор

So Mathf.SmoothDamp for example is a static function

hadtx
Автор

So if a static variable exists but never used/called, it still takes up memory?

HalValla
Автор

people average 16 gigs of memory nowadays. is a static unclearable item of what. 1 to 4kb really that much??? lol

monkeyrobotsinc.
Автор

these are for you bc of how good your course is.
I swear, your tuts are SO GOOD! This is the the course that I was looking for.

minionminer
join shbcf.ru