I have some doubts about how to load correctly my vars. I had a deep look into the docs and my general load scripts looks like this:
Code: Select all
if(ES3.FileExists())
{
if(ES3.KeyExists("myKey"))
myVar = ES3.Load<type>("myKey");
}
Code: Select all
if(ES3.FileExists())
{
try
{
myVar1 = ES3.Load<type>("myKey1");
myVar2 = ES3.Load<type>("myKey2");
//...
}
catch(KeyNotFoundException e)
{
Debug.Log("error key not found: "+e);
}
}
Thanks for reading!