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

  Рет қаралды 2,976

LlamAcademy

LlamAcademy

Күн бұрын

Пікірлер: 7
@poobagification
@poobagification 2 жыл бұрын
Man, code classes live in a perfect world. Inheritance passed down from one generation to the next with no loss and you don't have to share with other inheritors. Plus your parents don't have to be dead. Truly a paradise.
@LlamAcademy
@LlamAcademy 2 жыл бұрын
😆
@terryterry8744
@terryterry8744 Жыл бұрын
This series is incredible! Thank you for making this.
@RedaHaskouri
@RedaHaskouri 2 жыл бұрын
hi sir! please if you can help me! i start to make game like a puzzle game ( INSIDE ) but mine is 2D not 3D like INSIDE. my game is adventure puzzle game exactly like INSIDE. but theres my some problems if you can help me in tutorial video bcs my english its so bad. and you can help many people. ( i wish to help bcs i was asked many youtubers and no one care about my problems ) .. theres my problems : i dont know how exactly i make a smouth dynamic physicaly moves of player ( jump .., climb and hang ledges.., Climb and Swing on Ropes..) i saw a thousand of tutorials but all those just learn you how to make a simple code or not exactly what i want , bcz i need i movement like INSIDE .. and you know game is for puzzles so i need dynamic and physics in player movement.. this is one of my big problems. ( if you have a bonus of some physics puzzle to help me more ) game is fully 2D. please help me in tutorial video to make me understand and help me. i really 2 years and a thousand videos and no saw what i need. please help sir please!
@andrewallbright
@andrewallbright 2 жыл бұрын
Abstract interfacing techniques (like base classes, abstract classes, and interfaces) is an amazing technique that can be used to write algorithms that polymorphically use the abstraction. IMO I prefer interfaces especially in unity because it lets me define what roles my game entities can adopt and because interfaces lets me treat MonoBehaviours, ScriptableObjects, and vanilla C# classes as basically the same. Not to mention interfaces work great with NSubstitute which is great for test mocks. Designing your unity code with interfaces in mind is a bit of a mind f@*k but I think the effort is worth it. IMO.
@LlamAcademy
@LlamAcademy 2 жыл бұрын
Definitely have to put some thought into the class hierarchy with Unity. Most of the time I’ll use composition over inheritance because it just meshes better with giving the capability via a class that is abstracted from the “Enemy” or whatever. That’s not to say I don’t use inheritance & interfaces, but it’s not the only way to achieve adding behaviors! In a future video in this series I’m planning to cover the composition piece.
@hinaqazi6344
@hinaqazi6344 2 жыл бұрын
Beans 247 facts
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
How to program in Godot - GDScript Tutorial
58:10
Brackeys
Рет қаралды 857 М.
What are Interfaces? (C# Basics)
13:54
Code Monkey
Рет қаралды 215 М.
Unity Architecture - Composition or Inheritance?
16:24
Jason Weimann (GameDev)
Рет қаралды 74 М.
Unity C# Bitesize - Inheritance - (Beginner)
9:00
Dapper Dino
Рет қаралды 5 М.
Using Interfaces in Game Development (Unity Tutorial)
7:00
Infallible Code
Рет қаралды 90 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 409 М.
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН