Nerd For Tech
Published in

Nerd For Tech

Coding Quick Bite

Using Inheritance and Abstraction in C# for Enemies — Part 2

//Creating the child classes

The three enemies that will inherit the base class

Yesterday I discussed how we could use the concepts of inheritance and abstraction to create a base class that all of our enemies could use to prevent rewriting a ton of code or creating a mess in a single script.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
James West

James West

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.