It looks like you're new here. If you want to get involved, click one of these buttons!
I am making a game based off the How To Make A Game Video series on YouTube, and instead of having the game go automatously to the next level (Like in the video), I would like it to show a Level Complete Screen. (Same thing with crashing/falling off the edge, I want a Fail screen instead of just restarting the level.) Right now I have a script (That works) saying when the player collides with the finish line, the message "Level Complete!" is put into the console. How can I also add code so that a UI Canvas/Text/Button also appears? I am brand new to coding, and have spent 2+ hours searching the internet for a solution without success.
Please help if you can,
public class EndGame : MonoBehaviour
public void OnCollisionEnter(Collision col)
if (col.gameObject.name == "Player")
This script is attached to the Finish Line and works properly.
Let me know if you have a solution!