Object-oriented programming with Unity : Inheritance versus composition