void OnTriggerEnter2D(Collider2D co) {
if (co.name == “pacman”) {
Application.loadedLevel(“menu”);
See:
You’ll learn that loadLevel is not a function you can call.
You want to use LoadLevel(), loadedLevel returns the index of the current level.
void OnTriggerEnter2D(Collider2D co) {
if (co.name == “pacman”) {
Application.loadedLevel(“menu”);
See:
You’ll learn that loadLevel is not a function you can call.
You want to use LoadLevel(), loadedLevel returns the index of the current level.