Inheritance: MonoBehaviour
    public DeathData(DeathCount deaths)
    {
        deathsFromData      = deaths.totalDeaths;
        timeFromData        = deaths.totalTime;
        startTimeFromData   = deaths.startTime;
        stoppedTimeFromData = deaths.stoppedTime;

        //Debug.Log("Deaths in DeathData: " + deathsFromData);
    }
 void Start()
 {
     if (gameObject.tag == "Checkpoint") {
         gameObject.GetComponentInChildren<ParticleSystem>().enableEmission = false;
     }
     death = GameObject.FindGameObjectWithTag("P1").GetComponent<DeathCount>();
     if (seconds == 0) {
         seconds = 1.4f;
     }
 }
    public static void SaveDeaths(DeathCount death)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Application.persistentDataPath + "/death_info";
        FileStream      stream    = new FileStream(path, FileMode.Create);

        DeathData data = new DeathData(death);

        formatter.Serialize(stream, data);
        stream.Close();
    }