浏览代码

fix: checking if the old save file exists

when we open the game in a different scene in the first time (when we don't start the game in the Initialization scene), the error is raised.
/main
João Ricardo dos Santos 3 年前
当前提交
c11d51a0
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      UOP1_Project/Assets/Scripts/SaveSystem/FileManager.cs

6
UOP1_Project/Assets/Scripts/SaveSystem/FileManager.cs


{
File.Delete(newFullPath);
}
if (!File.Exists(fullPath))
{
return false;
}
File.Move(fullPath, newFullPath);
}
catch (Exception e)

正在加载...
取消
保存