Nefario
Lever to open a door
do you already drag and drop this?
from what i can tell, if player in range near lever, player can interact it with get button E, then if player press E while inrange then do animation.
if your code really doesnt work, try to debug it using Unity Debug Mode or you can always count write a comment there. on each function. to see whather or not it works.
and also i want to ask you question where this script attach to? is it on the Lever or Player itself?, if it's on the lever, why there's Input.GetKeyDown? on the lever?
21 replies
How do these parameters even work?
you can think parameter as of the key, and the method is the house with different set of lock. as long as you know the what lock is, you can create that key.
if you want to call the method it means you need to call it for specific lock
also if you have to call a method from a class you can think of this class as the owner of this house,
for example if you have avarage class
of course each owner have different personality, you can think of avarege class = introvert so you need to make a relatioshop first (we always call this create a new object). and if the class is static like below you can think of it as extrovert person. just call it by name and he always reply to you
8 replies
✅ Please let me know if you have used VS 2022 before
Yes pretty much we all know this.
but first you need to try it yourself like spooky said.
and if you stuck like idk 1 hour or 15 minute and don't know how to solved it, then you can ask for some help.
37 replies
Disable Blazor NavLink
well in that case add an overlapping loading animation and add Cancel button on that popup... :awesome:
or add a.. State? like if State A then disable this if State B then enable it?. i often do this on Unity whenever i want to playaround with the unity prefab, but im not so sure if this OK in blazor. :TeBeCat:
8 replies
Blazor Server App. Error KeyNotFoundException: The given key was not present in the dictionary.
and as for my appsetting.json
i dont see anything wrong with it, did i miss something? my postgres database running on port 5432 and as for my pgadmin running on 5050
2 replies