How to use INHERITANCE (C#) to create more characters' behaviors in Unity

  Рет қаралды 23,844

Beaver Joe

Beaver Joe

Күн бұрын

Пікірлер: 69
@subliminalcastillo2126
@subliminalcastillo2126 4 жыл бұрын
Bruh. I came here to learn about inheritance & learned 50 other things I've been wanting to know too. You are the MAN!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Chris Castillo thx 😊 Appreciate!!
@TwiejkVR
@TwiejkVR 3 жыл бұрын
So happy i found this tutorial, finally someone who gives us practicle examples of this confusing topic. Well done man!
@denielldevries
@denielldevries 3 жыл бұрын
This is the first tutorial or overview I've watched that actually makes sense. I was confused on where you would even put the Enemy script while the child class inherits from it and this explained that concept well. Thanks for the video!
@RetroGamesHQ
@RetroGamesHQ 3 жыл бұрын
So many tutorials suck at showing how to properly use inheritance, so thank you making this simple and effective tutorial
@brandonlilly5738
@brandonlilly5738 4 жыл бұрын
I’m going to rewatch this and take notes. This helped me so much. Thank you
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Thx for your comment. By the way My project's link is in the description below. (Also, I highly recommend you to watch this, very inspired as well: kzbin.info/www/bejne/kKHbf6B6opKnbJY)
@ihtasham9237
@ihtasham9237 2 жыл бұрын
This was not only a good introduction to inheritance, it was also a good introduction to the Unity engine to someone who has had prior game dev experience
@TheKr0ckeR
@TheKr0ckeR 3 жыл бұрын
I was here to practise inheritance and i learned to create full game. Especially the hp bar concept is the best!
@oscarlai9511
@oscarlai9511 3 жыл бұрын
As a new developer, this has not only given the code but also explained it with images really really well. Thanks and keep up the work.
@jonatan.cirqueira3925
@jonatan.cirqueira3925 3 жыл бұрын
I never understood why tutorials are not always like this, you show the problem appearing before teaching the solution, much more intuitive because that's what happen when we are really developing. I hope your gets more and more attention
@rhgamedev355
@rhgamedev355 4 жыл бұрын
It really baffles my that your channel isn't more popular. You put out some of the best unity tutorials on youtube!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Thx😊😊 that’s my pleasure.
@lautarodesimone54
@lautarodesimone54 3 жыл бұрын
It's criminal that this vid has such few views. It's amazing how much it helped me to practice inheritance.
@DrewofDonuts
@DrewofDonuts 3 жыл бұрын
I'm so confused why this doesn't have more views - this is so well done and helpful! Thank you so much (-:
@lorddorvazgon2077
@lorddorvazgon2077 2 жыл бұрын
YOU ARE THE BEST INSTRUCTOR EVER!!
@moviedevil12
@moviedevil12 2 жыл бұрын
WOW, amazing video! Very detailed and very clearly explained. This deserves a lot more views!
@alex_opr
@alex_opr Жыл бұрын
This is such a good practical example, can't wait to try it out for my game
@Kalrush_Random
@Kalrush_Random 2 жыл бұрын
Listen!!! Great tutorial, I Love the art and the explanation, I understood almost everything by what you said & the example compared to other tutorials which were confusing and without examples, Thank you very much, Wish you the best!
@dogaru8957
@dogaru8957 2 жыл бұрын
Nice job your video really showed me inheritances how simply are
@michaelluck5577
@michaelluck5577 4 жыл бұрын
This sooo good. Clear structure and useful information. Not bloated in the slightest. Although I sometimes found your accent funny. At points it you sound like a guy who is trying his best to fake a really harsh accent. Except the word class... I have never heard a more majestic pronunciation of the word. 😂
@zero102321
@zero102321 Жыл бұрын
You are very nice! I love your tutorial. That so easy to understand. Have you great video come out. I can't wait to see it.
@GobiPie
@GobiPie 2 жыл бұрын
This tuto is really amazing, you put lot of efforts into making it clear and with nice tips along the way. Kinda sad you only have 5k sub, you deserve a lot more visibility for such a quality content!
@baguingi5589
@baguingi5589 4 жыл бұрын
My god thank you I was wondering if this was a correct approach and you explain it perfectly
@Jamesbass74
@Jamesbass74 2 жыл бұрын
This guy is amazing! How have I never seen these?!
@radkarbonat4026
@radkarbonat4026 Жыл бұрын
I love full tutorial like this. Thanks
@hiiambarney4489
@hiiambarney4489 4 жыл бұрын
Thank you so much, I had a hard time understanding how to properly structure a game project and this is a huge step forward. For being more or less a newb in coding, I often get overwhelmed when things don't explain themselves. (Like the virtual void and protected functions. They didn't do anything different on their own so I was puzzled how they would work.)
@osamaabuzayed2198
@osamaabuzayed2198 4 жыл бұрын
Whatt!!? 3k subs only you should be 10 million subs Thank you for the tutorial ☺️
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
thx bro. I love each sub!!!
@THOMASXDXDXDXD
@THOMASXDXDXDXD 2 жыл бұрын
Amazing tutorial! Thank you so much for this video, it really helped me a lot to understand how to integrate inheritance and other OOP concepts into Unity.
@benjaminhodges3589
@benjaminhodges3589 3 жыл бұрын
Hey man, I’ve been really wanting to learn how to organize my code better and make things reusable and this video helped me out a ton. Thanks for putting out awesome content!
@seddikmekki34
@seddikmekki34 4 жыл бұрын
Great work. This tutrial is extremely helpful. Big thanks
@bladeinferioryt
@bladeinferioryt 3 жыл бұрын
really appreciate this man definitely earned my sub. Fantastic in depth explanations and really cleared things up with how to use inheritance cheers
@nightlifebartenders
@nightlifebartenders 3 жыл бұрын
What a gem of a video!
@bajajjumping5621
@bajajjumping5621 3 жыл бұрын
Outstanding unity tutorial man!!! Keep it up!!!
@WooGad0Xo
@WooGad0Xo 2 жыл бұрын
The tutorial is Awesome!
@yogesh6210
@yogesh6210 Ай бұрын
very underrated man you helped megood job 😀😀😀😀
@thought7067
@thought7067 5 жыл бұрын
Your channel is pretty cool just found out now
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
Thought that’s my honor 😊. Thanks for your likes.
@gab15042
@gab15042 3 жыл бұрын
Great Video, I learned a lot!
@geoff-dev
@geoff-dev 5 жыл бұрын
Nice tutorial! Your channel helps me a lot. :)
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
I am glad to see my tutorial can help you guys easy to understand! Appreciate!!
@carlabalos3884
@carlabalos3884 3 жыл бұрын
Hello nice tutorial. It would be great if you make a tutorial on oop being applied in game development. I really am struggling to apply those concepts in game development and do a lot of research.
@_Garm_
@_Garm_ 5 жыл бұрын
Great tutorial as usual! :D
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
Thanks for your likes!!! 😊😊
@alexdaf7554
@alexdaf7554 Жыл бұрын
Really helpfull, thanks a lot!
@MrSoulsbr
@MrSoulsbr 4 жыл бұрын
great tutorial :D
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Italo Veras thx. The next episode is coming in one week. 🎈☺️
@LeeTGame
@LeeTGame 5 жыл бұрын
很多不错的视频,订阅支持一波。(Nice video man! Already sub for more updates. )
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
LeeT Game Development 谢谢支持,超级感谢兄弟!😆😆😆
@LeeTGame
@LeeTGame 5 жыл бұрын
@@beaverjoe9171 别客气,必须的。:)
@Riodragon1
@Riodragon1 4 жыл бұрын
the best tutorial!!!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Shohan thx bro 😁😁
@Ironlionm4n
@Ironlionm4n 3 жыл бұрын
Curious why not make the methods abstract in the base class?
@titanmoruma5834
@titanmoruma5834 4 жыл бұрын
Very niiice!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Thanks~Next video will combine inheritance with ScriptableObject~ Hopefully you will like it
@atillaalagoz4100
@atillaalagoz4100 Жыл бұрын
Thanks
@NIKOSPARAPONIARIS
@NIKOSPARAPONIARIS 3 жыл бұрын
You are the Best!
@kingselconite6992
@kingselconite6992 11 ай бұрын
Now the question is, how do i call the DamageEnemy function from the player
@gamegod1882
@gamegod1882 4 жыл бұрын
Hi Joe, really thanks for your video! It help me a lot. However, I am creating my own game and need some advice from you. As this video is about enemy, may I know how about the Player? I have learn using "private static Player instance;" for my game from other video. And when I try to access the player data from enemy. I will use "Player.instance.data" As now I just have one player in my game, all seems fine. But what I decide in future is to create more character for selection and also may be also contain 2 player inside the game at same time. So, may I know I am using "Player.instance.data" to access the player data is right or not? Will it cause problem when enemy attacking the player later? Last more question, I use one "Enemy" script to two enemy with assign different data. like - E1 have 1 atk ability Ew have 2 atk ability When the enemy attacking the player, it looks they just damage the same value 1........ What happen with that? Sorry for such long question. Thank you.
@鬼谷海道
@鬼谷海道 5 жыл бұрын
日常支持一波~~哈哈 可以搞个Q群呀~~ 推广下中国的QQ 哈哈哈~~让外国友人了解中国游戏~~~~
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
谢谢谢谢!我正好在做下一期,我准备等人多了弄一个discord。想到时候推广一下中国风的游戏!
@NOBODY-bv1bl
@NOBODY-bv1bl 4 жыл бұрын
Hello joe! I want to know ,if target player more than 2 The enemy should choose most near player. how could I do?
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
諾倚麟 Hi. Select to use Vector2.Distance to calculate or Sqrt method to calculator which player close to the enemy. The second one will cost less calculator to Computer
@NOBODY-bv1bl
@NOBODY-bv1bl 4 жыл бұрын
@@beaverjoe9171 Thanks!! i try it😘
@NOBODY-bv1bl
@NOBODY-bv1bl 4 жыл бұрын
@@beaverjoe9171 I made it!😂😂😂😂 But my script looks ugly & long. How can I share with u?
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
諾倚麟 zhouzheyuan123456@gmail.com Here is my email address. If u are able to Chinese. I have one Chinese channel share more videos for u. My lastest episode have the link.
@DashzRight
@DashzRight 2 ай бұрын
impossible to understand a thing
Coroutines in Unity (how & when to use them)
12:35
Game Dev Beginner
Рет қаралды 29 М.
Better Coding in Unity With Just a Few Lines of Code
15:27
Firemind
Рет қаралды 314 М.
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 25 МЛН
Unity Architecture - Composition or Inheritance?
16:24
Jason Weimann (GameDev)
Рет қаралды 73 М.
Minecraft's Terraria Mod is Incredibly Fun!
21:29
ChippyGaming
Рет қаралды 388 М.
You Need To Know These Unity Tips!
8:50
ButWhyLevin
Рет қаралды 28 М.
Scriptable Objects: What are they? How do you use them?
10:38
Inheritance Tutorial (Parent Child) | Unreal Engine 5
34:51
Tyler Serino
Рет қаралды 26 М.
Inheritance - Unity Made Easy
10:20
Fire Brain Games (Creagines)
Рет қаралды 18 М.
Inheritance Explained in Unity C# | OOP Tutorial Series #3
14:01
Unity C# Bitesize - Inheritance - (Beginner)
9:00
Dapper Dino
Рет қаралды 5 М.
How to use SCRIPTABLE OBJECTS in Unity
12:25
Beaver Joe
Рет қаралды 6 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,4 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24