© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
29 replies
IceBlocker

Sell me on interfaces (and components if unity)

Hello!
Sooo, for games I suppose the most common interface to think about would be something like health or damageable, or smth alike.
However suppose that every object that could be damaged (let's say characters, obstacles, towers??? buildings?? idk), already inherit a base class "entityBase".
Why not just add the functions those classes would have anyway because of interfaces to entityBase?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unity indentation on #if UNITY_EDITOR
C#CC# / help
3y ago
Unity and me dum
C#CC# / help
2y ago
❔ Unity property unityaction invoke
C#CC# / help
3y ago
Unity - Reusable components, how?
C#CC# / help
2y ago