Home > Mobile >  unity 2d platformer tutorial broken death and triggers not working
unity 2d platformer tutorial broken death and triggers not working

Time:10-11

ok i have no idea what i did but now "my" code doesn't work aka the unity 2d platformer learning template isn't working properly, so the very nice death mechanic no longer works this is the error image and as you can see i have no idea what went wrong, all i did was change sprites and edit some numbers like speed and that stuff and i tried to make a trigger thing for confetti that didn't work and so i deleted it but every time i played before i deleted it the triggers wouldn't work and nor do they work now. Sounds like fun trying to figure out what is broken when i didn't touch anything important.

CodePudding user response:

The script is trying to refrence a variable that's unassigned could you send the code of PlayerDeath script, i assume you haven't assigned a variable inside of the inspector

  • Related