If you've been using Unity for a while, or are just getting started with Unity and decided it's time for you to start learning how to write code - this is the video series you need to start your programming journey!
- Part 1 - GitHub Repository
- Part 2 - GitHub Repository
- Part 3 - GitHub Repository
- Part 4 - No GitHub Repository for this one. Nothing new implemented.
- Part 5 - GitHub Repository
- Part 6 - You are here 🙂
In this tutorial repository (with associated video), aimed at absolute beginners who have very little to no coding experience whatsoever, you'll learn what Inheritance is (it's not passing on hereditary traits or getting money!), how to use it (you already are using it!), what an Interface is, how to use it, and what the difference between the two are!
📝📝📝YOUR HOMEWORK!📝📝📝
Do some data modeling for enemies that can attack the player. Starting with 3 types:
- Melee enemy
- Ranged enemy
- Boss enemy
Create inheritance relationships and interfaces to allow you to group common code and variables, define "can-do" relationships that allow you to extend what enemies and bosses can do in the future without significant rework.
📚 Here are the resources I mentioned and/or brought up during the video 📚
- Unity MonoBehaviour: https://docs.unity3d.com/ScriptReference/MonoBehaviour.html
- C# Fundamnetals - Inheritance: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/tutorials/inheritance
- C# Access Modifiers: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
- C# Interface: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/interface
- C# Virtual: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/virtual
- C# Overriding methods: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/knowing-when-to-use-override-and-new-keywords
Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.
- Andrew Bowen
- YOUR NAME HERE!
- YOUR NAME HERE!
- Gerald Anderson
- AudemKay
- Matt Parkin
- Ivan
- YOUR NAME HERE!
- Bastian
- Trey Briggs
- YOUR NAME HERE!
Interested in other AI Topics in Unity, or other tutorials on Unity in general?
- Requires Unity 2020.3 LTS or higher.