I’m a beginner in Unity but I’ll try my best explaining my problem.
I have a simple platformer I’m trying to build, and I have trouble wrapping my head around the collision/collider code in C# (I found a lot of forums answering this question, but mostly in JS)
Basically, on collision with the enemy, which have “Death” tags, I want the player sprite to spawn back at the beginning of the scene (similar to an Application.loadlevel). I’m having trouble forming that actual code of OnCollision with “Death” tag → Application.loadlevel(“LevelName”); - that’s to the extent that I understand it, but writing the code in between is where I’m getting lost.
I would appreciate any help, I’m only running across JS answers and feel really stuck.