filmov
tv
Inheritance and Interfaces for Beginners | Unity C# Basics 6 | Unity Tutorial

Показать описание
With this tutorial, 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!
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!
📝📝📝YOUR HOMEWORK!📝📝📝
Do some data modeling for enemies that can attack the player. Starting with 3 types:
1. Melee enemy
2. Ranged enemy
3. 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.
📚 Resources
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
📚 Take my Unity ShaderGraph Course:
Chapters:
00:00 Topic Introduction - You've already been using Inheritance!
01:15 Inheritance Relationship Defined
02:40 Inheritance by Real Life Example
05:20 Interfaces - Definition, Examples, and Benefits
09:28 Relating it all back to Unity
10:48 What's Inheritable from the Parent? (Access Modifiers)
13:33 Hands-on Exercise using Inheritance
18:44 Scene Updates & Demo
21:00 Homework! Review & Next Assignment
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!
📝📝📝YOUR HOMEWORK!📝📝📝
Do some data modeling for enemies that can attack the player. Starting with 3 types:
1. Melee enemy
2. Ranged enemy
3. 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.
📚 Resources
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
📚 Take my Unity ShaderGraph Course:
Chapters:
00:00 Topic Introduction - You've already been using Inheritance!
01:15 Inheritance Relationship Defined
02:40 Inheritance by Real Life Example
05:20 Interfaces - Definition, Examples, and Benefits
09:28 Relating it all back to Unity
10:48 What's Inheritable from the Parent? (Access Modifiers)
13:33 Hands-on Exercise using Inheritance
18:44 Scene Updates & Demo
21:00 Homework! Review & Next Assignment
Комментарии