Serialization/Deserialization Returning Zeros

Here is the pastebin of my issue. Basically I’m making a save/load system that saves every 3 seconds as of now(subject to change later on), and loads the game at the start of the app if there is a playersave. Currently it loads in “with no error” and displays the debug logs I set up to show me if it serialized and deserialized correctly. But when it loads at the start of the game, it sets all the values to 0 when I set the default value to 500. This is how I know it’s at least attempting to save and load, just not actually retaining or deserializing data properly. Thank you all for your time!

the dataManager looks ok.
Not sure about this bit

public void Load()
    {
        dataManager.loadData(); // Dont think you need this line

        float[] loadedData = dataManager.loadData();
        loadedData = new float[3]; // Dont think you need this line as you have just loaded it  - reseting back to 0?

        currencyGold = loadedData[0];
        damagePerClick = loadedData[1];
        damagePerSecond = loadedData[2];
    }
1 Like

Yea, it was line 7, thank you for the help! I’m new to unity so this was stumping me.