Hello Unity3D subreddit!
Currently am working on a Game Project for school, and am wondering how I would go about grabbing reference to a parent’s already overridden function?
What I mean is. I have a base class, called EnemyBase. It stores some variables and key functions all enemies would share. I also have virtual functions that outline specific behaviors (idle, chase, attack, hurt) so that each enemy that inherits said function can modify that as needed.
Enemy_1 inherits from EnemyBase, and has those functions overridden with all the necessary behavior.
Now, I am looking to implement Enemy_2. This enemy, aside from its attack behavior, will behave pretty closely to Enemy_1. What I would *like* to do, is to have Enemy_2 inherit from the Enemy_1 class and call upon the overridden functions defined in Enemy_1 for its own logic. Is there any viable way to do that?
Hopefully that outlines the source of my question, can clarify further in the comments :D