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.
@LlamAcademy2 жыл бұрын
😆
@terryterry8744 Жыл бұрын
This series is incredible! Thank you for making this.
@RedaHaskouri2 жыл бұрын
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!
@andrewallbright2 жыл бұрын
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.
@LlamAcademy2 жыл бұрын
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.