If you don't understand inheritance...watch this video
Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
Someone in discord recently asked if I could make a video on how to handle making enemies without having to copy and paste code multiple times for various enemies, while still maintaining the ability to have unique movement and abilities.
I remember VERY clearly how difficult I found Inheritance to understand when I was less experienced, and so I made the tutorial that I would have wanted to watch back then, which includes ACTUAL code examples for things you'd want to use in a game (instead of abstract/vague examples that just confused me more.)
So, this Unity tutorial will REALLY help you better understand clean coding using inheritance and interfaces.
Hope you enjoy!
Link to Download our FREE 2D Asset Pack:
https://veilofmaia.com/tutorial-asset...
---
In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: https://assetstore.unity.com?aid=1100lwgBQ
---
Contents of This Video: ------------------------------------------
00:00 - Introduction and Scene Explanation
00:52 - Setting up the Base Class for Interactables
02:56 - Setting up the NPC Child Class
04:33 - Setting up the Indicator Icon for Interactables
05:31 - Setting up the Door and Lever Child Classes
07:10 - Setting up our Damage Interface
08:18 - Setting up our Base Class for Enemies
09:35 - Setting up First Enemy Child Class
09:52 - Adding a Loot Drop to All Enemies
12:18 - Setting up Child Classes For Other Enemies
Who We Are-------------------------------------
If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
Wishlist our Games:
Wishlist Veil of Maia! - https://store.steampowered.com/app/19...
Wishlist Samurado!
https://store.steampowered.com/app/23...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
#unitytutorial #unity2d #unity3d