- Home /
How can I reset my level when the player walks on a specific floor in the game?
Hi,
Sorry if this is asked before, but how can I reset the entire level if the player walks onto a specific floor in the game? I am new to Unity and not very good in the programming part of C# of Unity.
Thanks in advance,
PappieErnst
Answer by text23d · Nov 30, 2017 at 04:28 PM
you can make some cube, transform it into some rectangular form, then set trigger on it. It should be under feet, on floor. You can even disable mesh renderer. Add collider to it. set Trigger checkbox to make it trigger. and in OnTriggerEnter/Stay do your resetlevelfunction()
Answer by PappieErnst · Dec 01, 2017 at 03:47 PM
Hi @text23d
Thanks for your reply. Should I add an Event trigger or Activate trigger. I think an event trigger, but i do'nt know what to select next.
Thanks again.
PappieErnst