void Start() { DayNightManager.InitDay(); player = GameObject.FindGameObjectWithTag("Player"); deathByFall = false; stormHasStarted = false; currentStormTimer = initialStormTimer; stormImage = transform.Find("GameOverCanvas").GetComponentInChildren <Image>(); gameOverTextMesh = GameObject.FindGameObjectWithTag("GameOverText").GetComponent <TextMeshProUGUI>(); gameOverRestartTextMesh = GameObject.FindGameObjectWithTag("GameOverRestartText").GetComponent <TextMeshProUGUI>(); if (stormImage == null) { Debug.LogError("Storm sprite not attached to Storm object !"); } }