do i understand interfaces?,im trying to understand interfacing in unity c#
hi im very new to c# and coding and i have looked all over and seen many many different videos and explanations and i just want to make sure i understand how interfaces work.
lets say i have Iattackable,Idefendable,Ihealable,Imoveable(ect.ect.) interfaces i can implement those onto lets say interfaces (Isupport,Iaggressive,Inonaggressive). now with those interfaces i can implement Isupport,Iaggressive,Inonaggressive) onto interface Iamactions. now with that if i implement Iamactions onto the playersctipt i can access all of those interfaces and anything i assigned them to do (because its a contract so playerscript has to meet all conditions in order to do stuff) without the need for me to call get component and get gameobject get tag?
if i am misunderstanding this i would really appreciate and example or some help understanding if possible. i really don't understand any other reason why i would want to do it this way thank you very very much!!