IceBlocker
IceBlocker
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
well, I must say thanks everyone for the help!
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
So that would also be a component? a Targeteable component?
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
Still, when iterating for stuff to damage, Damageable would only care about the actual damage doing stuff, not targetting stuff
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
I could see simply making two Tower objects and giving a Damageable component to one of them
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
You mentioned an example about an interface IDamageable, what if I have two towers, one damageable and one that isn't, can't see how I would do that with interfaces without making a different tower that doesnt inherit from it
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
that makes sense, yeah, I can see why
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
at that point couldn't you make it part of the base class?
30 replies
CC#
Created by IceBlocker on 7/26/2024 in #help
Sell me on interfaces (and components if unity)
yeah, might need to see good examples
30 replies