Lesson 57 – OOP Enemy Classes

This lesson will show you how to create and instantiate GameObjects – along with relevant Components attached – all within code. We will be doing this by creating OOP Enemy classes all in C#. This will utilize many of the important OOP concepts you’ve learned up to this point, and introduce some new ones, such as marking class members as “virtual”, “abstract” and “override.” We will combine these OOP principles to achieve maximum flexibility when creating GameObject variations – in movement and appearance, for example – while keeping the classes lean and reusable. We will also look at another Unity method called Awake().

Members Only Content (Source Code, Quiz, Q&A)

This content is for Extended Support Package members only.
Log In Register