void Awake() { if (instance != null) { return; } instance = this; }
void Start() { endOfGameMenu = FindObjectOfType <EndOfGameMenu>(); theEndOfGameOnce = false; // mainCamera = GetComponent<Camera>(); }