/// <summary>
    /// This function saves the current data you have into the save file.
    /// </summary>
    public void SaveChestData()
    {
        BinaryFormatter bf   = new BinaryFormatter();
        FileStream      file = File.Create(Application.persistentDataPath + SAVEPATH);

        ChestDataFile data = new ChestDataFile();

        data.chestCount = allChestData.Count;
        data.allChests  = allChestData;

        bf.Serialize(file, data);
        file.Close();
        print("save current chest statuses");
    }
    /// <summary>
    /// This function loads the last saved data you have into the game.
    /// </summary>
    public void LoadChestData()
    {
        if (File.Exists(Application.persistentDataPath + SAVEPATH))
        {
            BinaryFormatter bf   = new BinaryFormatter();
            FileStream      file = File.Open(Application.persistentDataPath + SAVEPATH, FileMode.Open);
            ChestDataFile   data = (ChestDataFile)bf.Deserialize(file);
            file.Close();

            allChestData = data.allChests;
            print("load current chest statuses");
        }
        else
        {
            allChestData = new List <Chest> ();
        }
    }