Upgrade your workflow with Interfaces | Unity Tutorial

preview_player
Показать описание
In this video I'll show you a concept called interfaces in Unity. I'll hope you'll get some good value from this. Consider subscribing :).

#unity #unity3d #tutorial #interface #programming #coding
Рекомендации по теме
Комментарии
Автор

10/10 best explanation, would watch again

chunguscluegigaming
Автор

Hi! I think this is a good demonstration on how interfaces can be implemented, although, I think that for a health system it is so much easier to just create a generic 'Health' component with the same parameters for every single GameObject that can receive damage.

I've recently created one where I have also implemented UnityEvents so I can also trigger any functions from different components when damage is received and when it's dead, so different GameObjects can have different behaviors; even if they're just objects, not characters, you can simply assign a really low health value so it "dies" with one hit, in the end "health" in games is just an abstraction.

Anyway, I know there's no single answer to any topic in gamedev, but I found it interesting and hope to bring something useful to the conversation.

Good video.

SxAde
visit shbcf.ru