Hi,
I have three classes ‘Building’, ‘Residential’ and ‘Business’. The ‘Building’ class does not inherit from anything and the ‘Business’ and ‘Residential’ classes inherit from the ‘Building’ class, which specific functionality added to each based on the type of building, so for instance the ‘Business’ class has methods to calculate profit.
I have just created a ‘Bank’ class which inherits from monobehaviour so i can attach it to the bank model gameobject but i want it to inherit the functionality from the ‘Business’ class.
I have never really used OO programming with unity, whats the best way to structure my classes for inheritance ?