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?
30 replies