using System.Collections;
using System.Collections.Generic;
using System.Linq;
using TMPro;
using UnityEngine;

public class OutroManager : MonoBehaviour
{
    [SerializeField]
    private Sprite[] sprites;

    [SerializeField]
    GameObject background;

    [SerializeField]
    GameObject text;

    private List<string> texts = new List<string>()
    {
        "You have escaped.\nYou are safe.\nHowever, stranged on \nan uncharted world.",
        "You should not destroy\nyour whole ship.",
        "You have escaped.\nHowever, Norma did not made it.",
        "Your ship crashed onto\nthe surface.",
        "KIUAGIUFGAIU&$^@^#!%\nYou know the definition\nof insanity?"
    };

    // Start is called before the first frame update
    void Start()
    {
        int ending = (int)Scenes.Ending;
        background.GetComponent<SpriteRenderer>().sprite = sprites[ending];
        text.GetComponent<TMP_Text>().text = texts[ending];
    }

    // Update is called once per frame
    void Update() { }
}
