Game Over help
So I've been following this unity tutorial (https://www.youtube.com/watch?v=VbZ9_C4-Qbo) to learn how to make a game over. I've mad an empty object, named it GameManager, and copied down his code. Yet it won't work! It says "The accoiciated script cannot be loaded, please fix any compiler errors and assign a valid script." I'm at a total loss of what to do, help!
heres the code for context
using UnityEngine;
public class GameManager : MonoBehaviour { void EndGame () { Debug.Log("GAME OVER"); } }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613010129im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Game over menu 0 Answers
admob problem 0 Answers
Change in Editor via Script Values of another Script 2 Answers
Package Manager/XR Manager Issues when Updating VR Project from Unity 2017 to 2020 1 Answer