I tried reinstalling easy save 3, and that fixed it for a moment, and i was able to save the game. But now its broken again and im getting the same error. Reinstalling a second time did not work.
I havent moved anything out of the plugins folder. Unity 2020.1.4
Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleSave : MonoBehaviour
{
public GameObject PickupCandyScript;
public void Save()
{
PickupCandy script = PickupCandyScript.GetComponent<PickupCandy>();
ES3.Save("Candy Count", script.candyCount);
}
}