Example #1
0
    void Start()
    {
        //this will later be converted into a function, with a string argument passed through it to check which paths to save through
        //eg, GameLoadData(path2);
        if (System.IO.File.Exists(path))
        {
            //argument will also be passed through ReadData eg. ReadData(path2);
            ReadData();

            _playerMain.LoadData();
            _addOns.LoadData();
            _dashUpgrade.LoadData();
            _blastUpgrade.LoadData();
            _airJumpUpgrade.LoadData();
            _wallClimbUpgrade.LoadData();
            _playerShoot.LoadData();
            _concussionUpgrade.LoadData();
            _slamUpgrade.LoadData();
            _doubleAirJumpUpgrade.LoadData();
            _healSplinter.LoadData();
            print("file exists");
        }
    }