Make your character interact with objects in Unity using interfaces

preview_player
Показать описание

There is quite a lot of interesting elements in this tutorial:
1. Basic animations
2. Spawning objects
3. Basic TextMeshPro text
4. Data structures (arrays and lists)

If you have any suggestions please let me know.

Have a fantastic day!
Love you!

#UnityScripting #Interfaces #Iteractions

00:00 Intro
00:17 Interface Setup
00:45 Openable Door
02:13 Interaction Detector
04:20 Message (Floating Text)
06:02 Random Message Spawner
07:30 Containers
Рекомендации по теме
Комментарии
Автор

Hello Fantastic People! I hope you enjoyed this little practice! If you have any questions or ideas drop a comment below! :)

PitiITNet
Автор

Another great tutorial! Thank you for putting the time and effort to teach these concepts, you do an amazing job at it and they are very fun to watch!

josephenriquez
Автор

Seeing examples like these are a great help to learning to implement interactable objects in our own game scenes! And having 3 examples in one video is even better, since the variability helps clarify what is necessary and sufficient to create custom implementations! Thanks a lot!

turkeyjerkey
Автор

Just wanted to echo the other comments and say this was a fantastic video mate. I like the walkthrough style and how to the point you are - really easy to follow.

xcassets
Автор

Seeing examples are great. Thank you PitilT :)

LostAngel
Автор

Hello. I have a small problem. Even though I copied your code exactly, the "Open" trigger does not turn on. Maybe it's because I used Polygon Collider 2D instead of Circle Collider 2D. Do you have some free time to help me?

mechvd
Автор

Hello! thanks for the totorial, i need some help please, what is the TMP_Text Type Where is he?

NightNeonbr
Автор

Howdy! I was wondering what you would do if you wanted to add multiple door types as class members of this original door class. Would you create child scripts on each door or just paste the parent into each instance?

fireye
Автор

Great example. I always use that for best practice...Until.. When interactor needs to be affected different by every interaction we do. For example, we interact with hack place, there is another anim plays & player's X variable increases. I couldn't find a "best" way to do that. Instead I created an Interactor script that helps us to that. But still, I feel like I am against OCP since we have to add new method in interactor every time we add a new intractable to the game

TheKrckeR
visit shbcf.ru