Unity C# Fundamentals - Static Classes Versus Non-Static Classes

preview_player
Показать описание
Unity3d C# Static versus Non-Static classes explained through theory and also practice. I've also included various examples that build up from previous lessons and start using Visual Studio Code to show you some of the features available in this awesome lightweight IDE.

The project demonstrated in this video can be downloaded or cloned from:

Get realtime indie development tips from me in Twitter

Subscribe to my indie development videos & game releases newsletter

Blog about Indie development and startup
Рекомендации по теме
Комментарии
Автор

Dilimer ThankYou for the video.
I have a question what have I understand from this video and the internet correct me if I'm wrong:
We are using a static method because it is easy to call and it doesn't create an instance of a class. And we use a non static because when we have to create an instance of a class as an object and that object can store properties and we can use and overwrite the constructors.
But performance-wise and longterm-wise(maintenance) should we use static class more ofter?
When we create an instance that instance it is directly stored in memory. How does the storage of static class work in the memory?
If we some how create a whole game with static classes and methods how it will impact on the performance?

maazmaaz
Автор

Good Video. As I noticed your accent, I think your mother-language is Spanish. If that's true, It would be awesome to hear you recording some (or all) of your videos in Spanish too. Hi, from Ecuador.

KRockblue
welcome to shbcf.ru