public void FadeOutCanvas(bool m_loadNextScenes = false) { m_player = GameObject.FindGameObjectWithTag("Player"); if (m_player != null) { m_player.GetComponent <PlayerController>().m_stopMovement = true; } StopObjectCoroutines(); if (!m_ienumRunning) { StartCoroutine(FadeOutCanvasImage(m_loadNextScenes)); } // Changing music if (m_loadNextScenes) { m_musicManager.UpdateLevelInt(GameManager.instance.SceneData.NextScene); m_objectiveManager.FadeOut(); } }