Тёмный

HOW TO MAKE DOOR OPEN AND CLOSE IN UNITY 🎮 | Open Doors 2D and 3D Tutorial | Learn Unity 

Dani Krossing
Подписаться 482 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@soybean94
@soybean94 Год назад
Love the way you clearly explain your thinking process for writing the code, appreciate it!
@JV-cz7db
@JV-cz7db Год назад
THANKS so much for this tutorial, it's the first one involving coding that actually worked in my project. Your are a lifesaver!
@Duke_L00000
@Duke_L00000 Год назад
thx man u're the best
@mykschi3675
@mykschi3675 Год назад
This tutorial is amazing and you are really good at teaching !! great job sir !
@immen_
@immen_ Год назад
Well explained and extremly useful. Nice one.
@slacha4647
@slacha4647 Год назад
Thanks , you really helped me, and how to create a auto moving enemy
@GarrudaDraconix2
@GarrudaDraconix2 Год назад
In 3d it does nothing when i a go on the button but i have no code errors? The door really opens itself when i tick the open at start button though...
@elevengamedev
@elevengamedev Год назад
It really works, thank you.
@madpingui5007
@madpingui5007 Год назад
I think the code could be greatly simplified if delegates were used. you simply have two events for the switches and the gate subscribes to them (in case you want 2 switches). if not with a single switch it would be enough to do both functions of opening and closing. Eitherway great explanation and quite detailed, keep it up! 💪
@Dani_Krossing
@Dani_Krossing Год назад
Yes that would also be a way to do it. 🙂 So instead of having the scripts talk to one another directly, we could just subscribe the methods to a “open” and “close” event. And simply call those two. The problem however is when you start having 6 sets of doors with switches, since calling the event would trigger all the subscriptions. Or am I missing something? 🙂
@madpingui5007
@madpingui5007 Год назад
@@Dani_Krossing yeah you are right, but all depends on the kind of game we are developing, if you only have few doors per level for example then it wouldnt matter, also with this method you would have to set manually all doors and that could lead to null references later. Both are good aproaches it just depends on what are we aiming for.
@Dani_Krossing
@Dani_Krossing Год назад
@@madpingui5007 My wife just told me the same thing as you hehe. Funny coincidence. 😅 And yes you are absolutely right. 🙂
@trifyy
@trifyy Год назад
hey, i don't really know if you ever read this but i'd like to know since i watched your php tutorials if there is some way you could exclude specific names from registration except registering them
@eriksebz8466
@eriksebz8466 4 дня назад
Hmm, I've watched this video several times in a row now. It seems my code is the same as yours but I can only use the button to close the door and only if the ''Is Door Open" button is klicked in on the door script. How come it doesn't work otherwise?
@yousifky
@yousifky Год назад
😍😍😍😍😍😍 You are the best
@kurta.niones1338
@kurta.niones1338 Год назад
Very good release, crack work, without problems
@bilalahmadkhan9496
@bilalahmadkhan9496 Год назад
3 times did not start, but then it worked
@nitrons_
@nitrons_ Год назад
Is there a way to make this work horizontally? I've tried but it hasn't worked
@VojtaGaming25
@VojtaGaming25 9 месяцев назад
it doesent work i have just like the tutorial but it the button just doesent move
@VojtaGaming25
@VojtaGaming25 9 месяцев назад
Neverm mind i just figured out i had a empty gameobject as the object that holds the switch behaviour i just put it on my switch head the red thignie and now it works thanks
@milosmilosevic7135
@milosmilosevic7135 Год назад
Could we just use animation inside unity engine for door up and down ,and play that animation whan player enters a trigger or colide whatever ?i think that would be much easyer?btw nice video keep it up!
@Dani_Krossing
@Dani_Krossing Год назад
Yes that is also a valid way of doing it. 🙂 There are always multiple solutions to the same issue, and it’s just about which is more appropriate to the situation.
@AleksPanable
@AleksPanable Год назад
code PlayerController doesn't work
@favour5442
@favour5442 Год назад
First to comment ✌️✌️✌️
@AnaBolumar
@AnaBolumar Год назад
+sub
@PINSGAMEPLAY
@PINSGAMEPLAY Год назад
Take a drink every ti he says “to stay super organized “
@Stoney_Eagle
@Stoney_Eagle Год назад
But what's behind the door, do you have the nerves to find out? 😨🚪👻
Далее
How To Open Doors Easily in Unity With Trigger Events
6:52
How to Make a Door System in Unity - Unity C# Tutorial
23:55
I Made The Ultimate Cheating Device
9:39
Просмотров 546 тыс.
3 Ways to Open Doors in Unity!
20:55
Просмотров 41 тыс.
OPENING a DOOR in UNITY on TRIGGER EVENT
8:20
Просмотров 112 тыс.