// Start is called before the first frame update
    void Start()
    {
        EndGameText endTextObject = (EndGameText)GameObject.FindObjectOfType(typeof(EndGameText));
        string      endText       = endTextObject.GetEnding();

        Debug.Log(endText);
        GetComponent <TextMeshProUGUI>().SetText(endText);
    }
 private void Awake()
 {
     if (Instance != null)
     {
         Debug.LogError("More than one EndGameText present in the scene");
     }
     Instance = this;
     DontDestroyOnLoad(gameObject);
 }